Commit d6f485a3 authored by Guillaume Seguin's avatar Guillaume Seguin

Gracefully handle Analyzer errors (and thus buggy gcodes)

parent bca0b44c
...@@ -549,7 +549,10 @@ class printcore(): ...@@ -549,7 +549,10 @@ class printcore():
if self.printer: if self.printer:
self.sent.append(command) self.sent.append(command)
# run the command through the analyzer # run the command through the analyzer
self.analyzer.Analyze(command) try: self.analyzer.Analyze(command)
except:
print "Warning: could not analyze command %s:" % command
traceback.print_exc(file = sys.stdout)
if self.loud: if self.loud:
print "SENT:", command print "SENT:", command
if self.sendcb: if self.sendcb:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment