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
1 changed files with 3 additions and 0 deletions

3
fdroid
View File

@ -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: