From: Daniel Martí Date: Thu, 3 Jul 2014 16:26:49 +0000 (+0200) Subject: No need to print a trace when the user did a ^C X-Git-Tag: 0.2.1~49 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=ec8291ba771421325169733adeafbaeaa35cd3e7;p=fdroidserver.git No need to print a trace when the user did a ^C --- diff --git a/fdroid b/fdroid index 93a83579..288977b6 100755 --- a/fdroid +++ b/fdroid @@ -95,6 +95,9 @@ def main(): else: logging.critical(str(e)) sys.exit(1) + except KeyboardInterrupt: + print('') + sys.exit(1) # These should only be unexpected crashes due to bugs in the code # str(e) often doesn't contain a reason, so just show the backtrace except Exception, e: