Skip to content

Commit 8e01e6d

Browse files
smcvrossengeorgiev
authored andcommitted
cdn: Cope with depots with no name
App ID 1628350 "Steam Linux Runtime - Sniper" contains depot 1628351, which has no name, causing steam.client.cdn.CDNClient to crash with a KeyError while retrieving manifests from that depot. Fall back to using the depot ID as a placeholder name. Signed-off-by: Simon McVittie <[email protected]>
1 parent be5d6ad commit 8e01e6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

steam/client/cdn.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ def async_fetch_manifest(app_id, depot_id, manifest_gid, decrypt, name):
740740
and depot_id not in self.licensed_depot_ids
741741
and depot_id not in self.licensed_app_ids):
742742
self._LOG.debug("No license for depot %s (%s). Skipping...",
743-
repr(depot_info['name']),
743+
repr(depot_info.get('name', depot_id)),
744744
depot_id,
745745
)
746746
continue
@@ -769,7 +769,7 @@ def async_fetch_manifest(app_id, depot_id, manifest_gid, decrypt, name):
769769
depot_id,
770770
manifest_gid,
771771
decrypt,
772-
depot_info['name'],
772+
depot_info.get('name', depot_id),
773773
))
774774

775775
# collect results

0 commit comments

Comments
 (0)