mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Do not retry specified formats if they failed
This commit is contained in:
parent
43bb03539e
commit
5f9285eea6
|
@ -3267,7 +3267,7 @@ def open(fp, mode="r", formats=None):
|
|||
|
||||
im = _open_core(fp, filename, prefix, formats)
|
||||
|
||||
if im is None:
|
||||
if im is None and formats is ID:
|
||||
if init():
|
||||
im = _open_core(fp, filename, prefix, formats)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user