add mode to error message

This commit is contained in:
Yay295 2023-10-23 19:26:08 -05:00 committed by GitHub
parent d05ff5059f
commit ef46608974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@ def _lut(image, lut):
lut = lut + lut + lut lut = lut + lut + lut
return image.point(lut) return image.point(lut)
else: else:
msg = "not supported for this image mode" msg = "not supported for image mode " + image.mode
raise OSError(msg) raise OSError(msg)