]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-dsdb:tests: Correctly handle LdbError
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 17 Feb 2023 03:32:42 +0000 (16:32 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 8 Mar 2023 05:37:08 +0000 (05:37 +0000)
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

source4/dsdb/tests/python/ad_dc_medley_performance.py

index 3a8316fa0188efba62f32666c7c981ef1a57e45f..380ac0391e43b5a6beb64498059ccd87ed270635 100644 (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