Compare commits
2 Commits
bf5bdf7618
...
e8f63f175f
Author | SHA1 | Date | |
---|---|---|---|
e8f63f175f | |||
acd457babe |
@ -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:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user