We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3148799 commit a78a55bCopy full SHA for a78a55b
1 file changed
astrbot/core/config/astrbot_config.py
@@ -178,4 +178,6 @@ def __setattr__(self, key, value) -> None:
178
self[key] = value
179
180
def check_exist(self) -> bool:
181
+ if not self.config_path: # 加判空
182
+ return False
183
return os.path.exists(self.config_path)
0 commit comments