Skip to content

Commit db270dc

Browse files
committed
fix import
1 parent 270cec6 commit db270dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyter_client/multikernelmanager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ async def _async_shutdown_kernel(
240240
await task
241241
km = self.get_kernel(kernel_id)
242242
await t.cast(asyncio.Future, km.ready)
243-
except asyncio.exceptions.CancelledError:
243+
except asyncio.CancelledError:
244244
pass
245245
except Exception:
246246
self.remove_kernel(kernel_id)
@@ -302,7 +302,7 @@ async def _async_shutdown_all(self, now: bool = False) -> None:
302302
for km in kms:
303303
try:
304304
await km.ready
305-
except asyncio.exceptions.CancelledError:
305+
except asyncio.CancelledError:
306306
self._pending_kernels[km.kernel_id].cancel()
307307
except Exception:
308308
# Will have been logged in _add_kernel_when_ready

0 commit comments

Comments
 (0)