Browse Source

fixed webbrowser automatic opening

pull/3/head
psy 11 years ago
parent
commit
fbaf7230ff
  1. 7
      main.py

7
main.py

@ -342,13 +342,14 @@ class bc(object):
t = threading.Thread(target=BorderCheckWebserver, args=(self, ))
t.start()
time.sleep(2)
except:
print "Error: unable to start thread"
pass
# open same browser of history access on a new tab
try:
webbrowser.get(self.browser_path).open('http://127.0.0.1:8080', new=1)
except:
print "Error: Browser is not responding correctly.\n"
except:
print "Error: unable to start thread"
pass
# run traceroutes
traces = self.try_running(self.traces, "\nInternal error tracerouting.")
print '='*45 + "\n"

Loading…
Cancel
Save