diff --git a/PIL/TiffImagePlugin.py b/PIL/TiffImagePlugin.py index bf5c4c3b4..7ec194043 100644 --- a/PIL/TiffImagePlugin.py +++ b/PIL/TiffImagePlugin.py @@ -653,7 +653,7 @@ class TiffImageFile(ImageFile.ImageFile): self.fp = None # might be shared if e < 0: - raise_ioerror(e) + raise IOError(e) self.load_end()