Skip to content

Commit 91fbd10

Browse files
committed
handle both kinds of exceptions
1 parent ca79e2e commit 91fbd10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipykernel/iostream.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ async def _cancel():
9797

9898
try:
9999
self.io_loop.run_sync(_cancel)
100-
except TimeoutError:
100+
except (TimeoutError, asyncio.exceptions.TimeoutError):
101101
pass
102102
self.io_loop.close(all_fds=True)
103103

0 commit comments

Comments
 (0)