Skip to content

Commit

Permalink
fix log agent data api exception
Browse files Browse the repository at this point in the history
  • Loading branch information
zhourunlai committed Jan 4, 2025
1 parent c439df4 commit 2692fd9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions swarms/structs/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2692fd9

Please sign in to comment.