Commit ea3ea4e9 authored by Guillaume Seguin's avatar Guillaume Seguin

Fix scoping error in webinterface start in pronterface.py

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