From ed33873020641e31916d7e819a4469e4f146acb5 Mon Sep 17 00:00:00 2001 From: "CNMr.Sunshine" <61444298+CNMrSunshine@users.noreply.github.com> Date: Sat, 30 Aug 2025 17:29:20 +0800 Subject: [PATCH] Update main.py --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index bc90e056..dd8e0955 100644 --- a/src/main.py +++ b/src/main.py @@ -37,7 +37,7 @@ logger = get_logger("main") class MainSystem: def __init__(self): # 根据配置条件性地初始化记忆系统 - if global_config.memory.enable_memory: + if global_config.memory.enable_memory and hippocampus_manager is not None: self.hippocampus_manager = hippocampus_manager else: self.hippocampus_manager = None @@ -176,4 +176,4 @@ async def main(): if __name__ == "__main__": asyncio.run(main()) - \ No newline at end of file +