Removed unreachable error

This commit is contained in:
Andrew Murray 2022-01-11 13:42:58 +11:00
parent 90f3f72e19
commit 9c6df29b4d

View File

@ -67,8 +67,6 @@ class _Operand:
im1 = im1.convert("F")
if im2.mode != "F":
im2 = im2.convert("F")
if im1.mode != im2.mode:
raise ValueError("mode mismatch")
if im1.size != im2.size:
# crop both arguments to a common size
size = (min(im1.size[0], im2.size[0]), min(im1.size[1], im2.size[1]))