Skip to content

Commit

Permalink
Removed unreachable code
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed Aug 1, 2021
1 parent 5d1ba41 commit 4cbae0d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/PIL/Jpeg2KImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,6 @@ def _parse_jp2_header(fp):
if reader.read_fields(">4s")[0] == b"jpx ":
mimetype = "image/jpx"

if header is None:
raise SyntaxError("Could not find JP2 header")

size = None
mode = None
bpc = None
Expand Down

0 comments on commit 4cbae0d

Please sign in to comment.