From 2d4d97c195aa34062ae22d40eb54c693bd84ddda Mon Sep 17 00:00:00 2001 From: psy Date: Mon, 23 Sep 2013 10:55:16 -0700 Subject: [PATCH] fixed server daemon launch on error flow poc --- main.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/main.py b/main.py index 347271a..a61579b 100755 --- a/main.py +++ b/main.py @@ -506,20 +506,20 @@ class bc(object): pass else: traces = self.try_running(self.traces, "\nInternal error tracerouting.") - # start web mode (on a different thread) - try: - t = threading.Thread(target=BorderCheckWebserver, args=(self, )) - t.daemon = True - t.start() - time.sleep(2) - except (KeyboardInterrupt, SystemExit): - t.join() - sys.exit() - # open same browser of history access on a new tab - try: - webbrowser.open('http://127.0.0.1:8080', new=1) - except: - print "Error: Browser is not responding correctly.\n" + # start web mode (on a different thread) + try: + t = threading.Thread(target=BorderCheckWebserver, args=(self, )) + t.daemon = True + t.start() + time.sleep(2) + except (KeyboardInterrupt, SystemExit): + t.join() + sys.exit() + # open same browser of history access on a new tab + try: + webbrowser.open('http://127.0.0.1:8080', new=1) + except: + print "Error: Browser is not responding correctly.\n" print('='*75) print(str(p.version))