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:
parent
fe9171508f
commit
9f73fac5ef
@ -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,)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user