Image will never be None
Co-authored-by: jorenham <jhammudoglu@gmail.com>
This commit is contained in:
parent
b62ff96779
commit
7ef54f6bfd
@ -112,8 +112,6 @@ def test_to_array(mode: str, dtype: pyarrow.DataType, mask: list[int] | None) ->
|
||||
|
||||
reloaded = Image.fromarrow(arr, mode, img.size)
|
||||
|
||||
assert reloaded
|
||||
|
||||
assert_image_equal(img, reloaded)
|
||||
|
||||
|
||||
|
||||
@ -110,7 +110,7 @@ class ImageFont:
|
||||
except Exception:
|
||||
pass
|
||||
else:
|
||||
if image and image.mode in ("1", "L"):
|
||||
if image.mode in ("1", "L"):
|
||||
break
|
||||
else:
|
||||
if image:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user