replace
(foo, bar) = e
with
(foo, bar) = e.args
while will run in with both python2 and python3
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
force_traceback = True
if isinstance(inner_exception, LdbError):
- (ldb_ecode, ldb_emsg) = inner_exception
+ (ldb_ecode, ldb_emsg) = inner_exception.args
self.errf.write("ERROR(ldb): %s - %s\n" % (message, ldb_emsg))
elif isinstance(inner_exception, AssertionError):
self.errf.write("ERROR(assert): %s\n" % message)