No need to print a trace when the user did a ^C

This commit is contained in:
Daniel Martí 2014-07-03 18:26:49 +02:00
parent 8306bac7de
commit ec8291ba77

3
fdroid
View file

@ -95,6 +95,9 @@ def main():
else: else:
logging.critical(str(e)) logging.critical(str(e))
sys.exit(1) sys.exit(1)
except KeyboardInterrupt:
print('')
sys.exit(1)
# These should only be unexpected crashes due to bugs in the code # 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 # str(e) often doesn't contain a reason, so just show the backtrace
except Exception, e: except Exception, e: