mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
pytest: sid_strings: handle SDDLValueError
Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
054725440f
commit
d47c6654f9
@@ -221,7 +221,7 @@ cn: {object_name}
|
||||
|
||||
try:
|
||||
sd = security.descriptor.from_sddl(sddl, domsid)
|
||||
except ValueError:
|
||||
except (ValueError, security.SDDLValueError):
|
||||
# we don't have detail as to what went wrong
|
||||
self.assertNotIsInstance(expected_sid, str)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user