Skip to content

Commit

Permalink
Move requests_unixsocket import outside of fetch_url()
Browse files Browse the repository at this point in the history
  • Loading branch information
hrnciar committed Oct 1, 2020
1 parent 09ba565 commit f016886
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions notebook/tests/launchnotebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ def wait_until_alive(cls):
for _ in range(int(MAX_WAITTIME/POLL_INTERVAL)):
try:
cls.fetch_url(url)
except ModuleNotFoundError as error:
raise ModuleNotFoundError(error)
except Exception as e:
if not cls.notebook_thread.is_alive():
raise RuntimeError("The notebook server failed to start") from e
Expand Down

0 comments on commit f016886

Please sign in to comment.