Skip to content

Commit 014c342

Browse files
MAINT: apply ruff/Pycodestyle rule E722
E722 Do not use bare `except`
1 parent 8f2a4da commit 014c342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/_core/tests/test_nditer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3120,7 +3120,7 @@ def test_writebacks():
31203120
assert_equal(au.flags.writeable, False)
31213121
it.operands[0][:] = 0
31223122
raise ValueError('exit context manager on exception')
3123-
except:
3123+
except Exception:
31243124
pass
31253125
assert_equal(au, 0)
31263126
assert_equal(au.flags.writeable, True)

0 commit comments

Comments
 (0)