From 45424e1d83a0720e0288b4909c2e7fed66a0da8c Mon Sep 17 00:00:00 2001 From: samaranez1 <163613061+samaranez1@users.noreply.github.com> Date: Tue, 8 Sep 2026 20:15:34 +0800 Subject: [PATCH] Fix TypeError when manifest_gid is a dict in async_fetch_manifest Handle manifest_gid as a dictionary if needed. --- steam/client/cdn.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/steam/client/cdn.py b/steam/client/cdn.py index dbd09ab8..b6811e6c 100644 --- a/steam/client/cdn.py +++ b/steam/client/cdn.py @@ -780,12 +780,17 @@ def get_manifests(self, app_id, branch='public', password=None, filter_func=None def async_fetch_manifest( app_id, depot_id, manifest_gid, decrypt, depot_name, branch_name, branch_pass ): + + if isinstance(manifest_gid, dict): + manifest_gid = manifest_gid['gid'] try: manifest_code = self.get_manifest_request_code( - app_id, depot_id, int(manifest_gid), branch_name, branch_pass + app_id, depot_id, int(manifest_gid), branch_name, branch_pass ) except SteamError as exc: return ManifestError("Failed to acquire manifest code", app_id, depot_id, manifest_gid, exc) + + try: manifest = self.get_manifest(