Commit ea3ea4e9 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix scoping error in webinterface start in pronterface.py

parent a2e50a09
......@@ -166,16 +166,16 @@ class PronterWindow(wx.Frame,pronsole.pronsole):
try :
import cherrypy
from printrun import webinterface
try:
self.webInterface=webinterface.WebInterface(self)
self.webThread=threading.Thread(target=webinterface.StartWebInterfaceThread, args=(self.webInterface, ))
self.webThread.start()
except:
print _("Failed to start web interface")
traceback.print_exc(file = sys.stdout)
self.webInterface = None
except:
print _("CherryPy is not installed. Web Interface Disabled.")
try:
self.webInterface=webinterface.WebInterface(self)
self.webThread=threading.Thread(target=webinterface.StartWebInterfaceThread, args=(self.webInterface, ))
self.webThread.start()
except:
print _("Failed to start web interface")
traceback.print_exc(file = sys.stdout)
self.webInterface = None
def startcb(self):
self.starttime=time.time()
......
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