From 9e51ec752c93d850db15cd61a7a3463d8fe94344 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期五, 06 十二月 2024 10:10:09 +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