From 0c25bbb4c37131691c7fc1a59ec42994c118306b Mon Sep 17 00:00:00 2001 From: Eldon Date: Thu, 23 Jan 2014 16:28:52 -0500 Subject: [PATCH] Raise exception if we are never able to connect to the browser --- umbra/umbra.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/umbra/umbra.py b/umbra/umbra.py index 3ea2aa7..33cc2d4 100755 --- a/umbra/umbra.py +++ b/umbra/umbra.py @@ -97,7 +97,7 @@ class Chrome(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) while sock.connect_ex(('127.0.0.1',int(self.port))) != 0 and (time.time() - start) < float(self.browser_wait): time.sleep(0.1) - if (time.time() - start) < float(self.browser_wait): + if (time.time() - start) > float(self.browser_wait): raise Exception("Browser appears to have failed to start")