mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-19 04:09:40 +08: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
@ -5,9 +5,9 @@
|
|||||||
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
def exceptHook(type, value, traceback):
|
def exceptHook(hook_type, value, traceback):
|
||||||
import cura.CrashHandler
|
import cura.CrashHandler
|
||||||
cura.CrashHandler.show(type, value, traceback)
|
cura.CrashHandler.show(hook_type, value, traceback)
|
||||||
|
|
||||||
sys.excepthook = exceptHook
|
sys.excepthook = exceptHook
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user