[pixiv] make retrieving ugoira metadata non-fatal (#6297)
update to 6ae3a5cdb0
catch all exceptions instead of just StopException
This commit is contained in:
@@ -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"]
|
||||||
|
|||||||
Reference in New Issue
Block a user