mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-16 02:04:45 +03:00
Added catch for UnsupportedOperation in ImageFile load
This commit is contained in:
parent
ac6e86765d
commit
6b59c4a28d
|
@ -170,7 +170,7 @@ class ImageFile(Image.Image):
|
||||||
self.map, self.size, d, e, o, a
|
self.map, self.size, d, e, o, a
|
||||||
)
|
)
|
||||||
readonly = 1
|
readonly = 1
|
||||||
except (AttributeError, EnvironmentError, ImportError):
|
except (AttributeError, EnvironmentError, ImportError, io.UnsupportedOperation):
|
||||||
self.map = None
|
self.map = None
|
||||||
|
|
||||||
self.load_prepare()
|
self.load_prepare()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user