Skip to content

Commit 6381454

Browse files
ldrummjpakkane
authored andcommitted
Bare exceptions are no longer allowed [NFC]
The last instances of try: ... except: ... were removed in bf98ffc. The sideci.yml file was updated, but the flake8 config still allows this. Ensure that flake8 tests fail if this questionable construct appears again.
1 parent 2bd3095 commit 6381454

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.flake8

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ ignore =
2424
E731,
2525
# E741: ambiguous variable name 'l'
2626
E741,
27-
# E722: do not use bare except'
28-
E722,
2927
# W504: line break after binary operator
3028
W504,
3129
# A003: builtin class attribute

.pylintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,5 @@ enable=
2222
singleton-comparison,
2323
too-many-function-args,
2424
unexpected-keyword-arg,
25-
unreachable
25+
unreachable,
26+
bare-except

0 commit comments

Comments
 (0)