Skip to content

Commit 45b1b27

Browse files
committed
Better async server
1 parent f3833b7 commit 45b1b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interpreter/core/async_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def respond(self, run_code=None):
8989
return
9090

9191
if self.print:
92-
if chunk["type"] in ["code", "console"]:
92+
if chunk["type"] in ["code", "console"] and "format" in chunk:
9393
if "start" in chunk:
9494
print("\n\n------------\n\n```" + chunk["format"], flush=True)
9595
if "end" in chunk:

0 commit comments

Comments
 (0)