mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Merge pull request #7979 from radarhere/lab
This commit is contained in:
commit
a8f434f676
|
@ -304,7 +304,13 @@ def _cached_hopper(mode: str) -> Image.Image:
|
|||
with pytest.warns(DeprecationWarning):
|
||||
im = im.convert(mode)
|
||||
else:
|
||||
try:
|
||||
im = im.convert(mode)
|
||||
except ImportError:
|
||||
if mode == "LAB":
|
||||
im = Image.open("Tests/images/hopper.Lab.tif")
|
||||
else:
|
||||
raise
|
||||
return im
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user