Browse Source

Don't hook to CrashHandler, if we are debugging

Getting an early crash here. Hope that one helps.
Thomas Karl Pietrowski 7 years ago
parent
commit
2614c8a623
1 changed files with 2 additions and 1 deletions
  1. 2 1
      cura_app.py

+ 2 - 1
cura_app.py

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