diff --git a/astrbot/core/config/astrbot_config.py b/astrbot/core/config/astrbot_config.py index 6a415e56c9..77c298cac8 100644 --- a/astrbot/core/config/astrbot_config.py +++ b/astrbot/core/config/astrbot_config.py @@ -178,4 +178,6 @@ def __setattr__(self, key, value) -> None: self[key] = value def check_exist(self) -> bool: + if not self.config_path: # 加判空 + return False return os.path.exists(self.config_path)