perf: 自动更新时的异常处理

This commit is contained in:
Rock Chin
2023-01-02 12:54:38 +08:00
parent 3b5bc5e857
commit 27dbd470a7
3 changed files with 11 additions and 3 deletions

View File

@@ -115,7 +115,6 @@ def stop():
if __name__ == '__main__':
print('程序启动')
# 检查是否有config.py,如果没有就把config-template.py复制一份,并退出程序
if not os.path.exists('config.py'):
shutil.copy('config-template.py', 'config.py')