From edf87e66e09af6bd22e28cc2ec8016b2396c8fc9 Mon Sep 17 00:00:00 2001 From: smathot Date: Wed, 17 Jul 2024 09:49:05 +0200 Subject: [PATCH] RichtText: catch TypeError - Workaround for https://github.com/python-pillow/Pillow/issues/8241 --- openexp/_canvas/_richtext/richtext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openexp/_canvas/_richtext/richtext.py b/openexp/_canvas/_richtext/richtext.py index 978347c97..1bbc68bff 100644 --- a/openexp/_canvas/_richtext/richtext.py +++ b/openexp/_canvas/_richtext/richtext.py @@ -221,7 +221,7 @@ def _qimage_to_pil(self, qimage): """ try: return Image.fromqimage(self._to_qimage()) - except ImportError: + except (ImportError, TypeError): pass import numpy as np oslogger.info('no Qt bindings, using custom QImage to PIL conversion')