From 0c4c5c9d480ad9d7f64084c082dd1a8b403c8377 Mon Sep 17 00:00:00 2001 From: David Brochart Date: Thu, 26 Oct 2023 11:18:50 +0200 Subject: [PATCH] Fix possibly not defined tracker --- jupyter_client/session.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jupyter_client/session.py b/jupyter_client/session.py index 2cc2874e..b308cf40 100644 --- a/jupyter_client/session.py +++ b/jupyter_client/session.py @@ -861,6 +861,8 @@ def send( # use dummy tracker, which will be done immediately tracker = DONE stream.send_multipart(to_send, copy=copy) + else: + tracker = DONE if self.debug: pprint.pprint(msg) # noqa