mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Rename type into hook_type
"type" itself if a built-in function. Using this name could be unsave.
This commit is contained in:
parent
6adfbf4b90
commit
27423205b0
1 changed files with 2 additions and 2 deletions
|
@ -5,9 +5,9 @@
|
|||
|
||||
import sys
|
||||
|
||||
def exceptHook(type, value, traceback):
|
||||
def exceptHook(hook_type, value, traceback):
|
||||
import cura.CrashHandler
|
||||
cura.CrashHandler.show(type, value, traceback)
|
||||
cura.CrashHandler.show(hook_type, value, traceback)
|
||||
|
||||
sys.excepthook = exceptHook
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue