Compare commits

..

2 Commits

View File

@ -162,13 +162,12 @@ def repair_game(
raise RepairError( raise RepairError(
"pkg_version file not found, most likely you need to download the full game again." "pkg_version file not found, most likely you need to download the full game again."
) from e ) from e
else: with pkg_version_file.open("r") as f:
with pkg_version_file.open("r") as f: for line in f.readlines():
for line in f.readlines(): line = line.strip()
line = line.strip() if not line:
if not line: continue
continue pkg_version.append(json.loads(line))
pkg_version.append(json.loads(line))
repair_executor = concurrent.futures.ThreadPoolExecutor() repair_executor = concurrent.futures.ThreadPoolExecutor()
for file in pkg_version: for file in pkg_version: