mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-04-27 05:15:51 +00:00
fix(memory): improve warning message for empty/non-dict list arguments
This commit is contained in:
parent
a211e32e50
commit
fc0b38c304
@ -133,7 +133,7 @@ class MemoryStore:
|
|||||||
if args and isinstance(args[0], dict):
|
if args and isinstance(args[0], dict):
|
||||||
args = args[0]
|
args = args[0]
|
||||||
else:
|
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
|
return False
|
||||||
if not isinstance(args, dict):
|
if not isinstance(args, dict):
|
||||||
logger.warning("Memory consolidation: unexpected arguments type {}", type(args).__name__)
|
logger.warning("Memory consolidation: unexpected arguments type {}", type(args).__name__)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user