Skip to content

Commit d29d2ee

Browse files
committed
Send abort messages via correct stream
1 parent 52e790f commit d29d2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ipykernel/kernelbase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ async def dispatch_shell(self, msg, /, stream=None, subshell_id: str | None = No
399399
else:
400400
aborting = self.shell_channel_thread.manager.get_subshell_aborting(subshell_id)
401401
if aborting:
402-
self._send_abort_reply(self.shell_stream, msg, idents)
402+
self._send_abort_reply(stream, msg, idents)
403403
self._publish_status_and_flush("idle", "shell", stream)
404404
return
405405

@@ -409,7 +409,7 @@ async def dispatch_shell(self, msg, /, stream=None, subshell_id: str | None = No
409409
self.log.debug("\n*** MESSAGE TYPE:%s***", msg_type)
410410
self.log.debug(" Content: %s\n --->\n ", msg["content"])
411411

412-
if not self.should_handle(self.shell_stream, msg, idents):
412+
if not self.should_handle(stream, msg, idents):
413413
self._publish_status_and_flush("idle", "shell", stream)
414414
return
415415

0 commit comments

Comments
 (0)