From 9600159f8c4f9062ec439e848a8f1b302399bd2d Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期二, 03 十二月 2024 14:01:33 +0800
Subject: [PATCH] 历史会话异常问题

---
 app/api/agent.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/api/agent.py b/app/api/agent.py
index 98ee2cb..22ce8ef 100644
--- a/app/api/agent.py
+++ b/app/api/agent.py
@@ -143,14 +143,14 @@
                         elif 'report_name' in message_json:
                             message = message_json['report_name']
 
-                    except json.JSONDecodeError:
+                    except Exception as e:
                         pass  # 闈� JSON 瀛楃涓诧紝缁х画浣跨敤鍘熷 message
                 if session.get('files') and isinstance(session.get('files'), str):
                     try:
                         files = json.loads(session.get('files'))
                         process_files(files, agent_id)
 
-                    except json.JSONDecodeError:
+                    except Exception as e:
                         pass  # 闈� JSON 瀛楃涓诧紝缁х画浣跨敤鍘熷 message
 
                 # 妫�鏌� message 鏄惁涓� None

--
Gitblit v1.8.0