1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

pytest:sddl: 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-28 11:39:17 +13:00 committed by Andrew Bartlett
parent 328ddf6d3a
commit fd8cf82be1

View File

@ -69,7 +69,7 @@ class SddlDecodeEncodeBase(TestCase):
def _test_sddl_with_args(self, s, canonical):
try:
sd1 = security.descriptor.from_sddl(s, self.domain_sid)
except (TypeError, ValueError) as e:
except (TypeError, ValueError, security.SDDLValueError) as e:
self.fail(f"raised {e}")
sddl = sd1.as_sddl(self.domain_sid)