mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
Do not set size unnecessarily if image failed to open
This commit is contained in:
parent
204590600c
commit
2203afeafa
|
@ -354,7 +354,6 @@ class EpsImageFile(ImageFile.ImageFile):
|
|||
check_required_header_comments()
|
||||
|
||||
if not self._size:
|
||||
self._size = 1, 1 # errors if this isn't set. why (1,1)?
|
||||
msg = "cannot determine EPS bounding box"
|
||||
raise OSError(msg)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user