[pixiv] make retrieving ugoira metadata non-fatal (#6297)

update to 6ae3a5cdb0
catch all exceptions instead of just StopException
This commit is contained in:
Mike Fährmann
2024-10-13 21:23:05 +02:00
parent 3946fe5ac4
commit c7f0d8945b

View File

@@ -108,10 +108,10 @@ class PixivExtractor(Extractor):
if self.load_ugoira:
try:
return self._extract_ugoira(work)
except exception.StopExtraction as exc:
except Exception as exc:
self.log.warning(
"Unable to retrieve Ugoira metatdata (%s - %s)",
work["id"], exc.message)
"%s: Unable to retrieve Ugoira metatdata (%s - %s)",
work["id"], exc.__class__.__name__, exc)
elif work["page_count"] == 1:
url = meta_single_page["original_image_url"]