dsdb python tests: convert 'except X, (tuple)' to 'except X as e'
[metze/samba/wip.git] / source4 / dsdb / tests / python / ad_dc_medley_performance.py
index 72655f70589e6fcd16addefc38d8959f7db5fbcd..3e8f87ce186f55385d75860cc8fa44a990e4c23e 100644 (file)
@@ -216,7 +216,8 @@ class UserTests(samba.tests.TestCase):
                     self.ldb.search(dn,
                                     scope=SCOPE_BASE,
                                     attrs=['cn'])
-                except LdbError as (num, msg):
+                except LdbError as e:
+                    (num, msg) = e.args
                     if num != 32:
                         raise