We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa2e1f5 commit e195cb7Copy full SHA for e195cb7
jupyter_client/blocking/client.py
@@ -22,6 +22,7 @@ def wait_for_ready(self, timeout=None):
22
abs_timeout = float('inf')
23
else:
24
abs_timeout = time.time() + timeout
25
+
26
# Wait for kernel info reply on shell channel
27
while True:
28
try:
@@ -36,7 +37,8 @@ def wait_for_ready(self, timeout=None):
36
37
if not self.is_alive():
38
raise RuntimeError('Kernel died before replying to kernel_info')
39
- if time.time() < abs_timeout:
40
+ # Check if current time is ready check time plus timeout
41
+ if time.time() > abs_timeout:
42
raise RuntimeError("Kernel didn't respond in %d seconds" % timeout)
43
44
# Flush IOPub channel
0 commit comments