mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 14:32:28 +03:00
except named exception handling
This commit is contained in:
parent
af38f151a2
commit
5ca182a20d
6 changed files with 10 additions and 10 deletions
2
fdroid
2
fdroid
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue