We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d4cb86 commit 6b10a3bCopy full SHA for 6b10a3b
trame_rca/utils.py
@@ -22,8 +22,11 @@
22
23
try:
24
from trame_rca.encoders.turbo_jpeg import encode as encode_turbo
25
-except ImportError:
26
- print("Turbo JPEG - NOT AVAILABLE")
+except RuntimeError:
+ print("Turbo JPEG - NOT AVAILABLE (System Library)")
27
+ encode_turbo = encode_pil
28
+except ModuleNotFoundError:
29
+ print("Turbo JPEG - NOT AVAILABLE (Python package)")
30
encode_turbo = encode_pil
31
32
ENCODING_POOL = ThreadPoolExecutor(max(4, os.cpu_count()))
0 commit comments