Changed Crash Report layout and new information included - CURA-4195

This commit is contained in:
Diego Prado Gesto 2017-10-09 11:50:30 +02:00
parent c9e8f7c743
commit e2edbd11b6
2 changed files with 135 additions and 70 deletions

View file

@ -41,8 +41,9 @@ if "PYTHONPATH" in os.environ.keys(): # If PYTHONPATH is u
sys.path.insert(1, PATH_real) # Insert it at 1 after os.curdir, which is 0.
def exceptHook(hook_type, value, traceback):
import cura.CrashHandler
cura.CrashHandler.show(hook_type, value, traceback)
from cura.CrashHandler import CrashHandler
_crash_handler = CrashHandler(hook_type, value, traceback)
_crash_handler.show()
sys.excepthook = exceptHook