mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-10 23:34:44 +03:00
Update src/PIL/Image.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
21315e5fb3
commit
5593b629b9
|
@ -1304,8 +1304,7 @@ class Image:
|
||||||
elif self.mode in ("RGBA", "CMYK"):
|
elif self.mode in ("RGBA", "CMYK"):
|
||||||
channels = 4
|
channels = 4
|
||||||
else:
|
else:
|
||||||
tb = sys.exc_info()[2]
|
raise ValueError("Unsupported image mode")
|
||||||
raise ValueError("Unsupported image mode").with_traceback(tb)
|
|
||||||
|
|
||||||
def euclidean(p1, p2):
|
def euclidean(p1, p2):
|
||||||
if channels == 1:
|
if channels == 1:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user