Skip to content

Commit 1fc8011

Browse files
committed
Lint fix
1 parent 606c422 commit 1fc8011

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/PIL/Image.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3691,7 +3691,12 @@ def _open_core(
36913691
im = factory(fp, filename)
36923692
_decompression_bomb_check(im.size)
36933693
return im
3694-
except (SyntaxError, IndexError, TypeError, struct.error) as e:
3694+
except ( # noqa: PERF203
3695+
SyntaxError,
3696+
IndexError,
3697+
TypeError,
3698+
struct.error,
3699+
) as e:
36953700
if WARN_POSSIBLE_FORMATS:
36963701
warning_messages.append(i + " opening failed. " + str(e))
36973702
except BaseException:

0 commit comments

Comments
 (0)