[Reproducible-commits] [diffoscope] 01/02: Don't print the traceback when killed by KeyboardInterrupt
Mattia Rizzolo
mattia at mapreri.org
Thu Aug 20 12:47:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
mapreri-guest pushed a commit to branch master
in repository diffoscope.
commit c0237dd9dc547a9eac8f36cb6a81c1dee811aed4
Author: Mattia Rizzolo <mattia at mapreri.org>
Date: Thu Aug 20 12:44:16 2015 +0000
Don't print the traceback when killed by KeyboardInterrupt
---
diffoscope.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/diffoscope.py b/diffoscope.py
index a1a8ccc..20b963f 100755
--- a/diffoscope.py
+++ b/diffoscope.py
@@ -113,6 +113,9 @@ def main():
if __name__ == '__main__':
try:
sys.exit(main())
- except (Exception, KeyboardInterrupt):
+ except KeyboardInterrupt:
+ logger.info('Keyboard Interrupt')
+ sys.exit(2)
+ except:
traceback.print_exc()
sys.exit(2)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list