From: Joseph Sutton Date: Fri, 17 Feb 2023 03:32:42 +0000 (+1300) Subject: s4-dsdb:tests: Correctly handle LdbError X-Git-Tag: talloc-2.4.1~1453 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=403598b3076896287c84059a93569f0e0f3efb80;p=thirdparty%2Fsamba.git s4-dsdb:tests: Correctly handle LdbError Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett Autobuild-User(master): Andrew Bartlett Autobuild-Date(master): Wed Mar 8 05:37:08 UTC 2023 on atb-devel-224 --- diff --git a/source4/dsdb/tests/python/ad_dc_medley_performance.py b/source4/dsdb/tests/python/ad_dc_medley_performance.py index 3a8316fa018..380ac0391e4 100644 --- a/source4/dsdb/tests/python/ad_dc_medley_performance.py +++ b/source4/dsdb/tests/python/ad_dc_medley_performance.py @@ -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