From: Douglas Bagnall Date: Fri, 27 Oct 2023 00:20:33 +0000 (+1300) Subject: pytest: sid_strings: handle SDDLValueError X-Git-Tag: talloc-2.4.2~896 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d47c6654f9603bab40e53a422a2f34187f7b2fb8;p=thirdparty%2Fsamba.git pytest: sid_strings: handle SDDLValueError Signed-off-by: Douglas Bagnall Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/sid_strings.py b/python/samba/tests/sid_strings.py index 9f174bfd2aa..8d80a25f781 100644 --- a/python/samba/tests/sid_strings.py +++ b/python/samba/tests/sid_strings.py @@ -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: