Merge pull request #1800 from phw/PICARD-1718-crash-handler

PICARD-1718: crash handler
This commit is contained in:
Philipp Wolfer
2021-05-07 16:17:06 +02:00
committed by GitHub
3 changed files with 66 additions and 4 deletions

View File

@@ -1,3 +1,11 @@
#!/usr/bin/env python3
from picard.tagger import main
main('%(localedir)s', %(autoupdate)s)
try:
from picard.tagger import main
main('%(localedir)s', %(autoupdate)s)
except SystemExit:
raise # Just continue with a normal application exit
except: # noqa: E722,F722 # pylint: disable=bare-except
from picard import crash_handler
crash_handler()
raise