Skip to content

Commit bf5f5f3

Browse files
committed
fix:修复版本文件格式错误的bug
1 parent 2661dea commit bf5f5f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/utils/update.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ def mirror_download(self, res_id, mirror_data: Dict[str, dict]):
455455
version_file_path = os.path.join(".", "config", "version.txt")
456456
logger.info(f"正在读取版本文件: {version_file_path}")
457457
with open(version_file_path, "r") as version_file:
458-
version = version_file.read().split()[2][1:]
458+
v_data = version_file.read().split()
459+
version = v_data[2][1:]
459460
logger.debug(f"当前版本: {version}")
460461
except FileNotFoundError:
461462
logger.exception("版本文件未找到")

0 commit comments

Comments
 (0)