mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-19 13:20:36 +08:00
catch any exception while waiting to connect
requests 2.4 changed the exception type for a failed connection
This commit is contained in:
parent
78918ba827
commit
58ecfc2376
@ -37,7 +37,7 @@ class NotebookTestBase(TestCase):
|
||||
for _ in range(int(MAX_WAITTIME/POLL_INTERVAL)):
|
||||
try:
|
||||
requests.get(url)
|
||||
except requests.exceptions.ConnectionError:
|
||||
except Exception as e:
|
||||
if cls.notebook.poll() is not None:
|
||||
raise RuntimeError("The notebook server exited with status %s" \
|
||||
% cls.notebook.poll())
|
||||
|
Loading…
x
Reference in New Issue
Block a user