From c0835a0cd11e25ba65edf264a5a2c720b3c21c2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20F=C3=A4hrmann?= Date: Tue, 8 Oct 2024 09:30:48 +0200 Subject: [PATCH] [pp:ugoira] catch all exceptions when extracting zip archive (#6285) --- gallery_dl/postprocessor/ugoira.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gallery_dl/postprocessor/ugoira.py b/gallery_dl/postprocessor/ugoira.py index 87a0ba615f..247cc0f484 100644 --- a/gallery_dl/postprocessor/ugoira.py +++ b/gallery_dl/postprocessor/ugoira.py @@ -147,6 +147,13 @@ def convert_from_zip(self, pathfmt): except FileNotFoundError: pathfmt.realpath = pathfmt.temppath return + except Exception as exc: + pathfmt.realpath = pathfmt.temppath + self.log.error( + "%s: Unable to extract frames from %s (%s: %s)", + pathfmt.kwdict.get("id"), pathfmt.filename, + exc.__class__.__name__, exc) + return self.log.debug("", exc_info=exc) if self.convert(pathfmt, tempdir): if self.delete: