mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
python: Change except: statement to except Exception:
This way we only catch true exceptions and keyboard interrupts are not caught here. Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Tue Jan 24 03:32:40 CET 2012 on sn-devel-104
This commit is contained in:
committed by
Amitay Isaacs
parent
be292021f4
commit
1f0298dd1b
@ -112,7 +112,7 @@ class cmd_dbcheck(Command):
|
||||
else:
|
||||
error_count = chk.check_database(DN=DN, scope=search_scope,
|
||||
controls=controls, attrs=attrs)
|
||||
except:
|
||||
except Exception:
|
||||
if started_transaction:
|
||||
samdb.transaction_cancel()
|
||||
raise
|
||||
|
Reference in New Issue
Block a user