Skip to content

Commit

Permalink
check
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Dec 28, 2024
1 parent 439d5cf commit 3666351
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/PIL/Jpeg2KImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,8 @@ def _open(self) -> None:
else:
msg = "not a JPEG 2000 file"
raise SyntaxError(msg)
if self.mode == "CMYK":
assert False

self._reduce = 0
self.layers = 0
Expand Down

0 comments on commit 3666351

Please sign in to comment.