summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/steamgriddb.py
diff options
context:
space:
mode:
Diffstat (limited to 'gallery_dl/extractor/steamgriddb.py')
-rw-r--r--gallery_dl/extractor/steamgriddb.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gallery_dl/extractor/steamgriddb.py b/gallery_dl/extractor/steamgriddb.py
index 9d46fd6..8582824 100644
--- a/gallery_dl/extractor/steamgriddb.py
+++ b/gallery_dl/extractor/steamgriddb.py
@@ -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,)