We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 606c422 commit 1fc8011Copy full SHA for 1fc8011
1 file changed
src/PIL/Image.py
@@ -3691,7 +3691,12 @@ def _open_core(
3691
im = factory(fp, filename)
3692
_decompression_bomb_check(im.size)
3693
return im
3694
- except (SyntaxError, IndexError, TypeError, struct.error) as e:
+ except ( # noqa: PERF203
3695
+ SyntaxError,
3696
+ IndexError,
3697
+ TypeError,
3698
+ struct.error,
3699
+ ) as e:
3700
if WARN_POSSIBLE_FORMATS:
3701
warning_messages.append(i + " opening failed. " + str(e))
3702
except BaseException:
0 commit comments