From 992d91359f4e4437ddba9843173254441c896918 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期四, 02 一月 2025 18:03:28 +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