[Add] Error handling for update method in OSS & platform code. (#1939)

This commit is contained in:
Parshva Daftari
2024-10-08 15:04:59 +05:30
committed by GitHub
parent ab862d0d40
commit c689f94c52
3 changed files with 15 additions and 3 deletions

View File

@@ -197,6 +197,7 @@ class MemoryClient:
"""
capture_client_event("client.update", self)
response = self.client.put(f"/v1/memories/{memory_id}/", json={"text": data})
response.raise_for_status()
return response.json()
@api_error_handler