Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
droideck committed Feb 6, 2024
1 parent 9107e57 commit 38995c1
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/lib389/lib389/cli_idm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ def _get_basedn_arg(inst, args, log, msg=None):
if not DSLdapObject(inst, command_basedn).exists():
errmsg = f'The DN "{command_basedn}" does not exist.'
errmsg += f' It is required for "{command_name}" command. Please create it first.'

if args.json:
sys.stderr.write('{"desc": "%s"}\n' % errmsg)
else:
log.error(errmsg)
sys.exit(1)
raise ValueError(errmsg)
except KeyError:
pass
return basedn_arg
Expand Down

0 comments on commit 38995c1

Please sign in to comment.