From a883b56aa84eaf2d0f302ae6f5c5e01b45a721e8 Mon Sep 17 00:00:00 2001 From: Ankush Malaker <43288948+AnkushMalaker@users.noreply.github.com> Date: Fri, 15 Aug 2025 22:15:00 +0530 Subject: [PATCH] AsyncMemory._add_to_vector_store bugfix when no facts found (#3313) --- mem0/memory/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mem0/memory/main.py b/mem0/memory/main.py index 62df064ef..71aa83d6a 100644 --- a/mem0/memory/main.py +++ b/mem0/memory/main.py @@ -1219,6 +1219,8 @@ class AsyncMemory(MemoryBase): except Exception as e: logger.error(f"Invalid JSON response: {e}") new_memories_with_actions = {} + else: + new_memories_with_actions = {} returned_memories = [] try: