mirror of
https://github.com/samba-team/samba.git
synced 2025-07-15 16:59:09 +03:00
s4-samba-tool: fixed exception handling in subcommands
this switches to the new pattern of: except Exception, e: raise CommandError("some error message", e)
This commit is contained in:
@ -136,7 +136,7 @@ dn: @INDEXLIST
|
||||
self.ldb.add_ldif(self.schema_dn_add)
|
||||
self.ldb.modify_ldif(self.schema_dn_modify)
|
||||
self.ldb.add_ldif(self.schema_data)
|
||||
except:
|
||||
except Exception:
|
||||
self.ldb.transaction_cancel()
|
||||
raise
|
||||
else:
|
||||
|
Reference in New Issue
Block a user