From 8d90ad26ba8b05a172272f1de3ed2b430f16665a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Fri, 1 Feb 2013 11:01:20 +0100 Subject: [PATCH] Fixed exception triggered on analysis abort --- octoprint/util/gcodeInterpreter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/octoprint/util/gcodeInterpreter.py b/octoprint/util/gcodeInterpreter.py index a0e2349..d26d385 100644 --- a/octoprint/util/gcodeInterpreter.py +++ b/octoprint/util/gcodeInterpreter.py @@ -77,7 +77,7 @@ class gcode(object): currentLayer.append(currentPath) for line in gcodeFile: if self._abort: - raise StopIteration + raise AnalysisAborted() if type(line) is tuple: line = line[0] if self.progressCallback != None: