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

s4-dsdb:tests: Correctly handle LdbError

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Wed Mar  8 05:37:08 UTC 2023 on atb-devel-224
This commit is contained in:
Joseph Sutton 2023-02-17 16:32:42 +13:00 committed by Andrew Bartlett
parent 38468aa6e8
commit 403598b307

View File

@ -241,7 +241,7 @@ class UserTests(samba.tests.TestCase):
scope=SCOPE_BASE,
attrs=['cn'])
except LdbError as e:
(num, msg) = e
(num, msg) = e.args
if num != ERR_NO_SUCH_OBJECT:
raise