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:
committed by
Andrew Bartlett
parent
278ac39384
commit
a485ac3243
@ -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):
|
||||
|
Reference in New Issue
Block a user