mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-14 09:14: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
|
||||
)
|
||||
readonly = 1
|
||||
except (AttributeError, EnvironmentError, ImportError):
|
||||
except (AttributeError, EnvironmentError, ImportError, io.UnsupportedOperation):
|
||||
self.map = None
|
||||
|
||||
self.load_prepare()
|
||||
|
|
Loading…
Reference in New Issue
Block a user