Do not set size unnecessarily if image failed to open

This commit is contained in:
Andrew Murray 2023-04-01 19:36:06 +11:00
parent 204590600c
commit 2203afeafa

View File

@ -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)