Skip to content

Commit

Permalink
[pp:ugoira] catch all exceptions when extracting zip archive (#6285)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikf committed Oct 8, 2024
1 parent b64bede commit c0835a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gallery_dl/postprocessor/ugoira.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit c0835a0

Please sign in to comment.