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,6 +73,7 @@ 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()
if not known_args["debug"]:
sys.excepthook = exceptHook sys.excepthook = exceptHook
# Workaround for a race condition on certain systems where there # Workaround for a race condition on certain systems where there