Skip to content

Your lightweight open-source personal agent.

fix(memory): improve warning message for empty/non-dict list arguments

Re-binfc0b38c3047c
diff --git a/nanobot/agent/memory.py b/nanobot/agent/memory.py
index 80fba5ec9..21fe77da5 100644
--- a/nanobot/agent/memory.py
+++ b/nanobot/agent/memory.py
@@ -133,7 +133,7 @@ class MemoryStore:
if args and isinstance(args[0], dict):
args = args[0]
else:
- logger.warning("Memory consolidation: unexpected arguments type list with non-dict content")
+ logger.warning("Memory consolidation: unexpected arguments as empty or non-dict list")
return False
if not isinstance(args, dict):
logger.warning("Memory consolidation: unexpected arguments type {}", type(args).__name__)