Remove try: except: pass around status check
parent
f68636bb3b
commit
7edb74b18d
|
@ -1333,7 +1333,6 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
|
||||||
self.logbox.Clear()
|
self.logbox.Clear()
|
||||||
|
|
||||||
def statuschecker(self):
|
def statuschecker(self):
|
||||||
try:
|
|
||||||
while self.statuscheck:
|
while self.statuscheck:
|
||||||
string = ""
|
string = ""
|
||||||
wx.CallAfter(self.tempdisp.SetLabel,self.tempreport.strip().replace("ok ",""))
|
wx.CallAfter(self.tempdisp.SetLabel,self.tempreport.strip().replace("ok ",""))
|
||||||
|
@ -1376,8 +1375,6 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
wx.CallAfter(self.status.SetStatusText,_("Not connected to printer."))
|
wx.CallAfter(self.status.SetStatusText,_("Not connected to printer."))
|
||||||
except:
|
|
||||||
pass #if window has been closed
|
|
||||||
|
|
||||||
def capture(self, func, *args, **kwargs):
|
def capture(self, func, *args, **kwargs):
|
||||||
stdout=sys.stdout
|
stdout=sys.stdout
|
||||||
|
|
Loading…
Reference in New Issue