1
0
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:
Douglas Bagnall
2023-10-27 13:20:33 +13:00
committed by Andrew Bartlett
parent 054725440f
commit d47c6654f9

View File

@@ -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: