Your lightweight open-source personal agent.
Python agent-frameworkai-agentai-agentschatbotchatopsdiscord-botllm-agentsllmslocal-llmmcpmodel-context-protocolmulti-agentopenai-compatibleopenclawpersonal-ai-assistantpythonself-hostedtelegram-bot-ai-assistantwebuiworkflow-automation
fix(agent): handle UnicodeDecodeError in _read_last_entry
chengyongru69d60e2b063b
diff --git a/nanobot/agent/memory.py b/nanobot/agent/memory.pyindex 26c5cd45f..e9662ff2c 100644--- a/nanobot/agent/memory.py+++ b/nanobot/agent/memory.py@@ -290,7 +290,7 @@ class MemoryStore:if not lines:return Nonereturn json.loads(lines[-1])- except (FileNotFoundError, json.JSONDecodeError):+ except (FileNotFoundError, json.JSONDecodeError, UnicodeDecodeError):return Nonedef _write_entries(self, entries: list[dict[str, Any]]) -> None: