From 6b3b616c29cf5283f09346d5cb639f7452300a6a Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 8 Sep 2023 14:44:04 +1000 Subject: [PATCH] faster --- src/PIL/Image.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 9bf293d13e8..15890ffff6e 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -3252,6 +3252,8 @@ def _open_core(fp, filename, prefix, formats): # Leave disabled by default, spams the logs with image # opening failures that are entirely expected. # logger.debug("", exc_info=True) + if i == "TIFF": + raise continue except BaseException: if exclusive_fp: