Skip to content

Commit 47d4de5

Browse files
committed
chore: bump rawpy version to ~=0.27
1 parent cbb2d8d commit 47d4de5

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ dependencies = [
2424
"pydub~=0.25",
2525
"PySide6==6.8.0.*",
2626
"rarfile==4.2",
27-
"rawpy~=0.24",
27+
"rawpy~=0.27",
2828
"Send2Trash~=1.8",
2929
"SQLAlchemy~=2.0",
3030
"srctools~=2.6",

src/tagstudio/qt/controllers/preview_thumb_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ def __get_image_stats(self, filepath: Path) -> FileAttributeData:
4949
stats.width = image.width
5050
stats.height = image.height
5151
except (
52-
rawpy._rawpy._rawpy.LibRawIOError, # pyright: ignore[reportAttributeAccessIssue]
53-
rawpy._rawpy.LibRawFileUnsupportedError, # pyright: ignore[reportAttributeAccessIssue]
52+
rawpy.LibRawIOError,
53+
rawpy.LibRawFileUnsupportedError,
5454
FileNotFoundError,
5555
):
5656
pass

src/tagstudio/qt/previews/renderer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,8 +1121,8 @@ def _image_raw_thumb(filepath: Path) -> Image.Image | None:
11211121
)
11221122
except (
11231123
DecompressionBombError,
1124-
rawpy._rawpy.LibRawIOError, # pyright: ignore[reportAttributeAccessIssue]
1125-
rawpy._rawpy.LibRawFileUnsupportedError, # pyright: ignore[reportAttributeAccessIssue]
1124+
rawpy.LibRawIOError,
1125+
rawpy.LibRawFileUnsupportedError,
11261126
) as e:
11271127
logger.error("Couldn't render thumbnail", filepath=filepath, error=type(e).__name__)
11281128
return im

0 commit comments

Comments
 (0)