Skip to content

Commit

Permalink
samba-tool group addmembers: avoid python traceback on member add fai…
Browse files Browse the repository at this point in the history
…lure

Signed-off-by: Björn Baumbach <[email protected]>
Reviewed-by: Ralph Boehme <[email protected]>
  • Loading branch information
Björn Baumbach authored and metze-samba committed Jan 21, 2020
1 parent 2697415 commit cf9850b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/samba/netcmd/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,8 +289,8 @@ def run(self,
member_base_dn=member_base_dn)
except Exception as e:
# FIXME: catch more specific exception
raise CommandError('Failed to add members %r to group "%s"' % (
groupmembers, groupname), e)
raise CommandError('Failed to add members %r to group "%s" - %s' % (
groupmembers, groupname, e))
self.outf.write("Added members to group %s\n" % groupname)


Expand Down

0 comments on commit cf9850b

Please sign in to comment.