Skip to content

Commit 0963355

Browse files
committed
Fix for test_deadline_exec_reply
1 parent d35244c commit 0963355

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nbclient/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,10 +647,10 @@ async def _async_handle_timeout(
647647
timeout: int,
648648
cell: t.Optional[NotebookNode] = None) -> None:
649649

650-
assert self.km is not None
651650
self.log.error("Timeout waiting for execute reply (%is)." % timeout)
652651
if self.interrupt_on_timeout:
653652
self.log.error("Interrupting kernel")
653+
assert self.km is not None
654654
await ensure_async(self.km.interrupt_kernel())
655655
else:
656656
raise CellTimeoutError.error_from_timeout_and_cell(

0 commit comments

Comments
 (0)