Added catch for UnsupportedOperation in ImageFile load

This commit is contained in:
Andrew Murray 2016-06-11 15:56:55 +10:00
parent ac6e86765d
commit 6b59c4a28d

View File

@ -170,7 +170,7 @@ class ImageFile(Image.Image):
self.map, self.size, d, e, o, a
)
readonly = 1
except (AttributeError, EnvironmentError, ImportError):
except (AttributeError, EnvironmentError, ImportError, io.UnsupportedOperation):
self.map = None
self.load_prepare()