Skip to content

Commit

Permalink
add mode to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Yay295 authored Oct 24, 2023
1 parent d05ff50 commit ef46608
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/ImageOps.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def _lut(image, lut):
lut = lut + lut + lut
return image.point(lut)
else:
msg = "not supported for this image mode"
msg = "not supported for image mode " + image.mode

Check warning on line 59 in src/PIL/ImageOps.py

View check run for this annotation

Codecov / codecov/patch

src/PIL/ImageOps.py#L59

Added line #L59 was not covered by tests
raise OSError(msg)


Expand Down

0 comments on commit ef46608

Please sign in to comment.