Skip to content

Commit 7def089

Browse files
onlywadeAutomatedTester
authored andcommitted
Make sure the process is still running while waiting for the server to start.
Signed-off-by: AutomatedTester <[email protected]>
1 parent c84f3b9 commit 7def089

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

browsermobproxy/server.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ def start(self):
9797
stderr=subprocess.STDOUT)
9898
count = 0
9999
while not self._is_listening():
100+
if self.process.poll():
101+
message = ("The Browsermob-Proxy server process failed to start. Check server.log "
102+
"for a helpful error message.")
103+
raise Exception(message)
100104
time.sleep(0.5)
101105
count += 1
102106
if count == 60:

0 commit comments

Comments
 (0)