Disable graphical crash handler on all command line arguments that imply CLI only use

This commit is contained in:
Philipp Wolfer
2021-05-17 16:30:41 +02:00
parent bba20a28ab
commit 0cd586e7d6

View File

@@ -99,7 +99,7 @@ def crash_handler():
import sys
# Allow disabling the graphical crash handler for debugging and CI purposes.
if '--no-crash-dialog' in sys.argv:
if set(sys.argv) & {'--no-crash-dialog', '-v', '--version', '-V', '--long-version', '-h', '--help'}:
return
# First try to get traceback information and write it to a log file