Skip to content

Commit 9f2b04b

Browse files
committed
chore: 优化配置文件出问题时候,禁止还原
1 parent 50d713d commit 9f2b04b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ def load(self):
1616
except:
1717
print("[Config] Failed to load config.yml")
1818
print(traceback.format_exc())
19+
exit(520)
1920

2021
def save(self):
2122
with open(ROOT_PATH / "config" / "config.yml", "w", encoding="utf-8") as f:

0 commit comments

Comments
 (0)