mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-09 14:54:46 +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"):
|
||||
channels = 4
|
||||
else:
|
||||
tb = sys.exc_info()[2]
|
||||
raise ValueError("Unsupported image mode").with_traceback(tb)
|
||||
raise ValueError("Unsupported image mode")
|
||||
|
||||
def euclidean(p1, p2):
|
||||
if channels == 1:
|
||||
|
|
Loading…
Reference in New Issue
Block a user