Skip to content

Bulk asynchronous downloader for multiple file hosts

add decompression bomb catch

Jules-WinnfieldX5d214e1c6ed4
diff --git a/cyberdrop_dl/__init__.py b/cyberdrop_dl/__init__.py
index c89ff9f8c..c5d5d845f 100644
--- a/cyberdrop_dl/__init__.py
+++ b/cyberdrop_dl/__init__.py
@@ -1 +1 @@
-__version__ = "5.1.45"
+__version__ = "5.1.46"
diff --git a/cyberdrop_dl/utils/sorting.py b/cyberdrop_dl/utils/sorting.py
index 01a4d229b..5dbe43ee4 100644
--- a/cyberdrop_dl/utils/sorting.py
+++ b/cyberdrop_dl/utils/sorting.py
@@ -133,7 +133,7 @@ class Sorter:
width, height = image.size
resolution = f"{width}x{height}"
image.close()
- except PIL.UnidentifiedImageError:
+ except (PIL.UnidentifiedImageError, PIL.Image.DecompressionBombError):
resolution = "Unknown"
file_date = filedate.File(str(file)).get()
diff --git a/pyproject.toml b/pyproject.toml
index 70b8f2596..085e114b1 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cyberdrop-dl"
-version = "5.1.45"
+version = "5.1.46"
description = "Bulk downloader for multiple file hosts"
authors = ["Jules Winnfield <[email protected]>"]
readme = "README.md"