mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-13 18:56:17 +03:00
Removed unreachable error
This commit is contained in:
parent
90f3f72e19
commit
9c6df29b4d
|
@ -67,8 +67,6 @@ class _Operand:
|
||||||
im1 = im1.convert("F")
|
im1 = im1.convert("F")
|
||||||
if im2.mode != "F":
|
if im2.mode != "F":
|
||||||
im2 = im2.convert("F")
|
im2 = im2.convert("F")
|
||||||
if im1.mode != im2.mode:
|
|
||||||
raise ValueError("mode mismatch")
|
|
||||||
if im1.size != im2.size:
|
if im1.size != im2.size:
|
||||||
# crop both arguments to a common size
|
# crop both arguments to a common size
|
||||||
size = (min(im1.size[0], im2.size[0]), min(im1.size[1], im2.size[1]))
|
size = (min(im1.size[0], im2.size[0]), min(im1.size[1], im2.size[1]))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user