1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-28 11:42:03 +03:00

samba-tool: convert 'except X, e' to 'except X as e' for all X

This is needed for Python 3 and is compatible with python 2.6

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Douglas Bagnall
2018-02-14 10:07:23 +13:00
committed by Andrew Bartlett
parent 278ac39384
commit a485ac3243
15 changed files with 77 additions and 77 deletions

View File

@ -131,7 +131,7 @@ class LDAPBase(object):
def delete_force(self, object_dn):
try:
self.ldb.delete(object_dn)
except Ldb.LdbError, e:
except Ldb.LdbError as e:
assert "No such object" in str(e)
def get_attribute_name(self, key):