Fix some JPEG images identified as MPO

This commit is contained in:
Marek Nogacki 2015-10-13 14:49:00 +02:00
parent b7501aa3c0
commit 89963a9480

View File

@ -713,7 +713,7 @@ def jpeg_factory(fp=None, filename=None):
# It's actually an MPO
from .MpoImagePlugin import MpoImageFile
im = MpoImageFile(fp, filename)
except (TypeError, IndexError):
except (TypeError, IndexError, ValueError):
# It is really a JPEG
pass
except SyntaxError: