1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 12:12:34 +01:00

[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
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

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