From 627f680659b736f01d9a80400accedb868a48e2b Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Sat, 12 Jul 2025 02:57:11 +0400 Subject: [PATCH] refac --- backend/open_webui/socket/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/open_webui/socket/main.py b/backend/open_webui/socket/main.py index 3f675b8cca..5e7988a226 100644 --- a/backend/open_webui/socket/main.py +++ b/backend/open_webui/socket/main.py @@ -446,7 +446,10 @@ async def yjs_document_update(sid, data): """Handle Yjs document updates""" try: document_id = data["document_id"] - await stop_item_tasks(REDIS, document_id) + try: + await stop_item_tasks(REDIS, document_id) + except: + pass user_id = data.get("user_id", sid)