From 179b6eeaac0381b5ddc4faa941da981dba4ade30 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 10 Jun 2016 13:16:54 +0200 Subject: [PATCH] Fixed issue where not having a machine caused extruder retrieval to fail CURA-1689 --- cura/ExtruderManager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/ExtruderManager.py b/cura/ExtruderManager.py index 578905a63a..72b6086e26 100644 --- a/cura/ExtruderManager.py +++ b/cura/ExtruderManager.py @@ -71,6 +71,8 @@ class ExtruderManager(QObject): return self._extruder_trains[UM.Application.getInstance().getGlobalContainerStack().getBottom().getId()][str(self._active_extruder_index)] except AttributeError: return None + except KeyError: + return None ## Adds all extruders of a specific machine definition to the extruder # manager.