Commit 97af7725 authored by Kliment Yanev's avatar Kliment Yanev

Prevent (harmless) exception on every printed gcode line

parent 56a4a0d9
...@@ -1126,7 +1126,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole): ...@@ -1126,7 +1126,7 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
while not self.sentlines.empty(): while not self.sentlines.empty():
try: try:
gc=self.sentlines.get_nowait() gc=self.sentlines.get_nowait()
wx.CallAfter(self.gviz.addgcode(gc,1)) wx.CallAfter(self.gviz.addgcode,gc,1)
except: except:
break break
wx.CallAfter(self.status.SetStatusText,_("Not connected to printer.")) wx.CallAfter(self.status.SetStatusText,_("Not connected to printer."))
......
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