From 4995829d050ed2219e53decb9a2d91e42813d8fb Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期四, 05 十二月 2024 15:21:04 +0800 Subject: [PATCH] merge --- 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