Don't hook to CrashHandler, if we are debugging

Getting an early crash here. Hope that one helps.
This commit is contained in:
Thomas Karl Pietrowski 2017-12-09 02:40:46 +01:00
parent bc7cb1491d
commit 2614c8a623

View file

@ -73,7 +73,8 @@ def exceptHook(hook_type, value, traceback):
_crash_handler = CrashHandler(hook_type, value, traceback) _crash_handler = CrashHandler(hook_type, value, traceback)
_crash_handler.show() _crash_handler.show()
sys.excepthook = exceptHook if not known_args["debug"]:
sys.excepthook = exceptHook
# Workaround for a race condition on certain systems where there # Workaround for a race condition on certain systems where there
# is a race condition between Arcus and PyQt. Importing Arcus # is a race condition between Arcus and PyQt. Importing Arcus