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
refactor(session): simplify directory fsync handling
chengyongruafc65c086ef2
diff --git a/nanobot/session/manager.py b/nanobot/session/manager.pyindex 3587ef2e1..dfc49c3ef 100644--- a/nanobot/session/manager.py+++ b/nanobot/session/manager.py@@ -694,11 +694,10 @@ class SessionManager:with suppress(PermissionError):fd = os.open(str(path.parent), os.O_RDONLY)try:- try:- os.fsync(fd)- except OSError as exc:- if exc.errno != errno.EINVAL:- raise+ os.fsync(fd)+ except OSError as exc:+ if exc.errno != errno.EINVAL:+ raisefinally:os.close(fd)except BaseException: