Skip to content

Commit

Permalink
Merge pull request #176 from Night-stars-1/master
Browse files Browse the repository at this point in the history
fix: 强制更新脚本,未停止脚本
  • Loading branch information
Night-stars-1 authored May 14, 2023
2 parents 355f882 + aa471fa commit 100c502
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Honkai_Star_Rail.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from get_width import get_width
from tools.config import read_json_file, modify_json_file, init_config_file, CONFIG_FILE_NAME
from tools.update_file import update_file_main
from tools.exceptions import Exception
except:
pass

Expand Down Expand Up @@ -52,8 +53,8 @@ def up_data():
if not read_json_file(CONFIG_FILE_NAME, False).get('map_debug'):
ghproxy = read_json_file(CONFIG_FILE_NAME, False).get('github_proxy', "")
if "rawgithub_proxy" not in read_json_file(CONFIG_FILE_NAME, False):
log.info("未检测到必要更新,强制更新脚本,请重新运行脚本")
init_config_file(0,0)
raise Exception(f"未检测到必要更新,强制更新脚本,请重新运行脚本")

rawghproxy = read_json_file(CONFIG_FILE_NAME, False).get('rawgithub_proxy', "")
# asyncio.run(check_file(ghproxy, "map"))
Expand Down

0 comments on commit 100c502

Please sign in to comment.