From 63814543de6f46fc8aee7d3884a8746c968806ca Mon Sep 17 00:00:00 2001 From: Luke Drummond Date: Tue, 3 Nov 2020 21:31:44 +0000 Subject: Bare exceptions are no longer allowed [NFC] The last instances of try: ... except: ... were removed in bf98ffca. The sideci.yml file was updated, but the flake8 config still allows this. Ensure that flake8 tests fail if this questionable construct appears again. --- .flake8 | 2 -- .pylintrc | 3 ++- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.flake8 b/.flake8 index ff38c0f..6187601 100644 --- a/.flake8 +++ b/.flake8 @@ -24,8 +24,6 @@ ignore = E731, # E741: ambiguous variable name 'l' E741, - # E722: do not use bare except' - E722, # W504: line break after binary operator W504, # A003: builtin class attribute diff --git a/.pylintrc b/.pylintrc index 41adf61..bfa6d2f 100644 --- a/.pylintrc +++ b/.pylintrc @@ -22,4 +22,5 @@ enable= singleton-comparison, too-many-function-args, unexpected-keyword-arg, - unreachable + unreachable, + bare-except -- cgit v1.1