mirror of
https://github.com/lutris/lutris
synced 2024-09-04 23:13:35 +00:00
Catch JSON decode errors when reading wine versions (Closes #3668)
This commit is contained in:
parent
4ed658727e
commit
d31f636d6e
|
@ -67,7 +67,7 @@ class DLLManager:
|
|||
with open(self.versions_path, "r") as version_file:
|
||||
try:
|
||||
versions = [v["tag_name"] for v in json.load(version_file)]
|
||||
except KeyError:
|
||||
except (KeyError, json.decoder.JSONDecodeError):
|
||||
logger.warning(
|
||||
"Invalid versions file %s, deleting so it is downloaded on next start.",
|
||||
self.versions_path
|
||||
|
|
Loading…
Reference in a new issue