Skip to content

Commit 4fb34b8

Browse files
committed
fix room cleanup for non-notebooks
1 parent 51676ad commit 4fb34b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server_documents/rooms/yroom_manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ async def _watch_rooms(self) -> None:
182182
# cells, so the room should not be closed.
183183
awareness = room.get_awareness().get_local_state() or {}
184184
execution_state = awareness.get("kernel", {}).get("execution_state", None)
185-
if execution_state not in { "idle", "dead" }:
185+
if execution_state not in { "idle", "dead", None }:
186186
continue
187187

188188
# Otherwise, delete the room

0 commit comments

Comments
 (0)