Removed unreachable code

This commit is contained in:
Andrew Murray 2021-08-01 18:28:43 +10:00
parent 0c600f1d88
commit 8828080868

View File

@ -154,9 +154,6 @@ def _parse_jp2_header(fp):
if reader.read_fields(">4s")[0] == b"jpx ": if reader.read_fields(">4s")[0] == b"jpx ":
mimetype = "image/jpx" mimetype = "image/jpx"
if header is None:
raise SyntaxError("Could not find JP2 header")
size = None size = None
mode = None mode = None
bpc = None bpc = None