mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 01:08:59 +08:00
Add key check before accessing in StartSliceJob
CURA-5901
This commit is contained in:
parent
d88a465737
commit
c545d9df77
@ -72,7 +72,7 @@ class GcodeStartEndFormatter(Formatter):
|
||||
# "-1" is global stack, and if the setting value exists in the global stack, use it as the fallback value.
|
||||
if key in kwargs["-1"]:
|
||||
value = kwargs["-1"]
|
||||
if key in kwargs[str(extruder_nr)]:
|
||||
if str(extruder_nr) in kwargs and key in kwargs[str(extruder_nr)]:
|
||||
value = kwargs[str(extruder_nr)][key]
|
||||
|
||||
if value == default_value_str:
|
||||
|
Loading…
x
Reference in New Issue
Block a user