1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-03 04:22:09 +03:00

samba-tool group addmembers: avoid python traceback on member add failure

Signed-off-by: Björn Baumbach <bb@sernet.de>
Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
Björn Baumbach
2020-01-21 13:56:29 +01:00
committed by Stefan Metzmacher
parent 2697415239
commit cf9850b4e0

View File

@ -289,8 +289,8 @@ Example2 shows how to add a single user account, User2, to the supergroup AD gro
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)