Fixed issue where not having a machine caused extruder retrieval to fail

CURA-1689
This commit is contained in:
Jaime van Kessel 2016-06-10 13:16:54 +02:00
parent 9672b3360c
commit 179b6eeaac

View File

@ -71,6 +71,8 @@ class ExtruderManager(QObject):
return self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getBottom().getId()][str(self._active_extruder_index)] return self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getBottom().getId()][str(self._active_extruder_index)]
except AttributeError: except AttributeError:
return None return None
except KeyError:
return None
## Adds all extruders of a specific machine definition to the extruder ## Adds all extruders of a specific machine definition to the extruder
# manager. # manager.