diff --git a/PIL/ImageFile.py b/PIL/ImageFile.py index 8f3ee524c..0c7a19194 100644 --- a/PIL/ImageFile.py +++ b/PIL/ImageFile.py @@ -178,7 +178,7 @@ class ImageFile(Image.Image): self.map = None self.load_prepare() - + err_code = 0 if not self.map: # sort tiles in file order self.tile.sort(key=_tilesort)