mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-23 16:19:49 -05:00
Raise exception if we are never able to connect to the browser
This commit is contained in:
parent
ca3d6d5999
commit
0c25bbb4c3
@ -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")
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user