diff --git a/PIL/Jpeg2KImagePlugin.py b/PIL/Jpeg2KImagePlugin.py index 26eec237d..36e15b762 100644 --- a/PIL/Jpeg2KImagePlugin.py +++ b/PIL/Jpeg2KImagePlugin.py @@ -138,10 +138,7 @@ class Jpeg2KImageFile(ImageFile.ImageFile): sig = self.fp.read(4) if sig == b'\xff\x4f\xff\x51': self.codec = "j2k" - try: - self.size, self.mode = _parse_codestream(self.fp) - except Exception as e: - print e + self.size, self.mode = _parse_codestream(self.fp) else: sig = sig + self.fp.read(8)