mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Fix mypy failure
This commit is contained in:
parent
87fb495e07
commit
13600504d4
1 changed files with 2 additions and 0 deletions
|
@ -337,6 +337,8 @@ class MachineManager(QObject):
|
|||
# that situation will be fixed (and not occur again, since it switches it out to the preferred variant or
|
||||
# variant instead!)
|
||||
machine_node = ContainerTree.getInstance().machines[global_stack.definition.getId()]
|
||||
if not self._global_container_stack:
|
||||
return
|
||||
for extruder in self._global_container_stack.extruderList:
|
||||
variant_name = extruder.variant.getName()
|
||||
variant_node = machine_node.variants.get(variant_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue