mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 21:29:41 +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
|
||||
|
||||
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…
x
Reference in New Issue
Block a user