1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-22 18:53:21 +01:00

[steamgriddb] raise proper exception for deleted assets

This commit is contained in:
Mike Fährmann 2024-03-22 17:53:06 +01:00
parent fe9171508f
commit 9f73fac5ef
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -163,6 +163,9 @@ class SteamgriddbAssetExtractor(SteamgriddbExtractor):
def assets(self):
endpoint = "/api/public/asset/" + self.asset_type + "/" + self.asset_id
asset = self._call(endpoint)["asset"]
if asset is None:
raise exception.NotFoundError("asset ({}:{})".format(
self.asset_type, self.asset_id))
return (asset,)