This commit is contained in:
jxxghp 2024-04-25 10:31:11 +08:00
parent a11318390d
commit 73ae09b041

View File

@ -128,7 +128,7 @@ class SystemChain(ChainBase, metaclass=Singleton):
if version_file.exists():
try:
with open(version_file, 'r') as f:
version = str(f).strip()
version = str(f.read()).strip()
return version
except Exception as err:
logger.error(f"加载版本文件 {version_file} 出错:{str(err)}")