Skip to content

Commit 63ee7ac

Browse files
committed
Move requests_unixsocket import outside of fetch_url()
1 parent 09ba565 commit 63ee7ac

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

notebook/tests/launchnotebook.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ def wait_until_alive(cls):
5353
for _ in range(int(MAX_WAITTIME/POLL_INTERVAL)):
5454
try:
5555
cls.fetch_url(url)
56+
except ModuleNotFoundError as error:
57+
# Errors that should be immediately thrown back to caller
58+
raise error
5659
except Exception as e:
5760
if not cls.notebook_thread.is_alive():
5861
raise RuntimeError("The notebook server failed to start") from e

0 commit comments

Comments
 (0)