summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2022-11-04 08:35:42 +0800
committerKyomotoi <[email protected]>2022-11-04 08:35:42 +0800
commit1b211c3a9a882935c1653d2ce1a8f73ea9ea90f8 (patch)
tree5cb8bb4350ab9bd3aecfc2d5c46711e04cfd410a
parente4bee2d66d8e9bedae368307a04cc0764c3f3303 (diff)
downloadATRI-1b211c3a9a882935c1653d2ce1a8f73ea9ea90f8.tar.gz
ATRI-1b211c3a9a882935c1653d2ce1a8f73ea9ea90f8.tar.bz2
ATRI-1b211c3a9a882935c1653d2ce1a8f73ea9ea90f8.zip
🎨 减少报错呼脸的可能
-rw-r--r--ATRI/configs/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ATRI/configs/config.py b/ATRI/configs/config.py
index bbf0048..3ea0bf7 100644
--- a/ATRI/configs/config.py
+++ b/ATRI/configs/config.py
@@ -36,7 +36,7 @@ class Config:
raw_conf = yaml.safe_load(_DEFAULT_CONFIG_PATH.read_bytes())
conf = yaml.safe_load(config_path.read_bytes())
- if raw_conf["ConfigVersion"] != conf["ConfigVersion"]:
+ if raw_conf.get("ConfigVersion") != conf.get("ConfigVersion"):
print("!!! 你的 config.yml 文件已废弃, 请 删除/备份 并重新启动")
sleep(3)
exit(-1)