[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

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,)