chore: bump rawpy version to ~=0.27

This commit is contained in:
Travis Abendshien
2026-05-08 13:25:31 -07:00
parent cbb2d8d342
commit 47d4de5825
3 changed files with 5 additions and 5 deletions

View File

@@ -24,7 +24,7 @@ dependencies = [
"pydub~=0.25",
"PySide6==6.8.0.*",
"rarfile==4.2",
"rawpy~=0.24",
"rawpy~=0.27",
"Send2Trash~=1.8",
"SQLAlchemy~=2.0",
"srctools~=2.6",

View File

@@ -49,8 +49,8 @@ class PreviewThumb(PreviewThumbView):
stats.width = image.width
stats.height = image.height
except (
rawpy._rawpy._rawpy.LibRawIOError, # pyright: ignore[reportAttributeAccessIssue]
rawpy._rawpy.LibRawFileUnsupportedError, # pyright: ignore[reportAttributeAccessIssue]
rawpy.LibRawIOError,
rawpy.LibRawFileUnsupportedError,
FileNotFoundError,
):
pass

View File

@@ -1121,8 +1121,8 @@ class ThumbRenderer(QObject):
)
except (
DecompressionBombError,
rawpy._rawpy.LibRawIOError, # pyright: ignore[reportAttributeAccessIssue]
rawpy._rawpy.LibRawFileUnsupportedError, # pyright: ignore[reportAttributeAccessIssue]
rawpy.LibRawIOError,
rawpy.LibRawFileUnsupportedError,
) as e:
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
return im