From 2692fd94b98a8ec04cea8c69b4a901a442d1e87c Mon Sep 17 00:00:00 2001 From: zhourunlai Date: Sat, 4 Jan 2025 13:10:07 +0800 Subject: [PATCH] fix log agent data api exception --- swarms/structs/agent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/swarms/structs/agent.py b/swarms/structs/agent.py index f68098ee9..a40c784cd 100644 --- a/swarms/structs/agent.py +++ b/swarms/structs/agent.py @@ -2369,9 +2369,9 @@ def log_agent_data(self): "Authorization": "Bearer sk-f24a13ed139f757d99cdd9cdcae710fccead92681606a97086d9711f69d44869", } - response = requests.post(url, json=data_dict, headers=headers) - - return response.json() + requests.post(url, json=data_dict, headers=headers) + # response.raise_for_status() + return None def handle_tool_schema_ops(self): if exists(self.tool_schema):