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: