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(session): handle errors in legacy session migration
andienguyen-ecoligo54a0f3d038e2
diff --git a/nanobot/session/manager.py b/nanobot/session/manager.pyindex 18e23b270..19d44398f 100644--- a/nanobot/session/manager.py+++ b/nanobot/session/manager.py@@ -108,9 +108,12 @@ class SessionManager:if not path.exists():legacy_path = self._get_legacy_session_path(key)if legacy_path.exists():- import shutil- shutil.move(str(legacy_path), str(path))- logger.info("Migrated session {} from legacy path", key)+ try:+ import shutil+ shutil.move(str(legacy_path), str(path))+ logger.info("Migrated session {} from legacy path", key)+ except Exception as e:+ logger.warning("Failed to migrate session {}: {}", key, e)if not path.exists():return None