Skip to content

Commit

Permalink
RichtText: catch TypeError
Browse files Browse the repository at this point in the history
- Workaround for python-pillow/Pillow#8241
  • Loading branch information
smathot committed Jul 17, 2024
1 parent 9cac008 commit edf87e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openexp/_canvas/_richtext/richtext.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit edf87e6

Please sign in to comment.