Skip to content

Commit

Permalink
fix: catch ImportError for pillow_jxl module
Browse files Browse the repository at this point in the history
  • Loading branch information
CyanVoxel committed Feb 1, 2025
1 parent 880c8ef commit a2f9685
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tagstudio/src/qt/widgets/thumb_renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import cv2
import numpy as np
import pillow_jxl # noqa: F401
import rawpy
import structlog
from mutagen import MutagenError, flac, id3, mp4
Expand Down Expand Up @@ -68,6 +67,11 @@
register_heif_opener()
register_avif_opener()

try:
import pillow_jxl # noqa: F401
except ImportError:
logger.exception('[ThumbRenderer] Could not import the "pillow_jxl" module')


class ThumbRenderer(QObject):
"""A class for rendering image and file thumbnails."""
Expand Down

0 comments on commit a2f9685

Please sign in to comment.