except named exception handling

This commit is contained in:
NeroBurner 2015-09-17 13:25:08 +02:00 committed by Daniel Martí
parent af38f151a2
commit 5ca182a20d
6 changed files with 10 additions and 10 deletions

2
fdroid
View file

@ -137,7 +137,7 @@ def main():
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:
except Exception as e:
logging.critical("Unknown exception found!")
raise
sys.exit(0)