mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
Add key check before accessing in StartSliceJob
CURA-5901
This commit is contained in:
parent
d88a465737
commit
c545d9df77
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
# "-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"]:
|
if key in kwargs["-1"]:
|
||||||
value = 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]
|
value = kwargs[str(extruder_nr)][key]
|
||||||
|
|
||||||
if value == default_value_str:
|
if value == default_value_str:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue