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.
2 parents c958acc + 7278102 commit f86623bCopy full SHA for f86623b
ipykernel/iostream.py
@@ -338,7 +338,7 @@ def flush(self):
338
339
send will happen in the background thread
340
"""
341
- if self.pub_thread.thread.is_alive():
+ if self.pub_thread and self.pub_thread.thread is not None and self.pub_thread.thread.is_alive():
342
# request flush on the background thread
343
self.pub_thread.schedule(self._flush)
344
# wait for flush to actually get through, if we can.
0 commit comments