mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Add a crash handler to catch uncaught exceptions
This should catch any uncaught exceptions and avoid the Py2Exe message about Cura.log Fixes #133
This commit is contained in:
parent
fb7b7ca7b8
commit
8130bae4c0
2 changed files with 49 additions and 3 deletions
11
cura_app.py
11
cura_app.py
|
@ -3,7 +3,12 @@
|
|||
# Copyright (c) 2015 Ultimaker B.V.
|
||||
# Cura is released under the terms of the AGPLv3 or higher.
|
||||
|
||||
import cura.CuraApplication
|
||||
try:
|
||||
import cura.CuraApplication
|
||||
|
||||
app = cura.CuraApplication.CuraApplication.getInstance()
|
||||
app.run()
|
||||
except Exception as e:
|
||||
import cura.CrashHandler
|
||||
cura.CrashHandler.show()
|
||||
|
||||
app = cura.CuraApplication.CuraApplication.getInstance()
|
||||
app.run()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue