Clients: allow games without datapackage (#978)

This commit is contained in:
alwaysintreble 2022-08-29 17:16:13 -05:00 committed by GitHub
parent 3eb9e7050f
commit 45fb735320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -345,6 +345,8 @@ class CommonContext:
cache_package = Utils.persistent_load().get("datapackage", {}).get("games", {})
needed_updates: typing.Set[str] = set()
for game in relevant_games:
if game not in remote_datepackage_versions:
continue
remote_version: int = remote_datepackage_versions[game]
if remote_version == 0: # custom datapackage for this game