Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: also catch attribute error (.get() on type int for example) (#5650)
Kian Jones6757c7e20145
diff --git a/letta/llm_api/google_vertex_client.py b/letta/llm_api/google_vertex_client.pyindex 4598cb7d4..abf3903b5 100644--- a/letta/llm_api/google_vertex_client.py+++ b/letta/llm_api/google_vertex_client.py@@ -128,7 +128,7 @@ class GoogleVertexClient(LLMClientBase):logger.warning(f"Modified heartbeat message with special character warning for retry {retry_count}/{self.MAX_RETRIES}")- except (json.JSONDecodeError, TypeError):+ except (json.JSONDecodeError, TypeError, AttributeError):# Not a JSON message or not a heartbeat, skip modificationpass