mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-06 21:03:18 +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()
|
check_required_header_comments()
|
||||||
|
|
||||||
if not self._size:
|
if not self._size:
|
||||||
self._size = 1, 1 # errors if this isn't set. why (1,1)?
|
|
||||||
msg = "cannot determine EPS bounding box"
|
msg = "cannot determine EPS bounding box"
|
||||||
raise OSError(msg)
|
raise OSError(msg)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user