Skip to content

Commit

Permalink
fix: encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
moesnow committed Oct 20, 2023
1 parent 7dadf3b commit 777224c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/weekly/universe.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def check_path():
logger.error(_("模拟宇宙缺失核心文件,请尝试更新"))
return False
# 日常任务需要能够自定义次数的模拟宇宙版本,检测是否存在 nums 参数
with open(os.path.join(config.universe_path, 'states.py'), 'r') as f:
with open(os.path.join(config.universe_path, 'states.py'), 'r', encoding='utf-8') as f:
if "nums" not in f.read():
logger.warning(_("模拟宇宙版本过低"))
Universe.update()
Expand Down

0 comments on commit 777224c

Please sign in to comment.