diff options
author | Dani Alcala <112832187+clavedeluna@users.noreply.github.com> | 2022-11-05 09:54:13 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-05 12:54:13 +0000 |
commit | 3c180dff050af44e7b4f9adf1ab872031fb9f6a8 (patch) | |
tree | 6ef83078272c01ab98accaf8133fdab2430979ab /doc/user_guide | |
parent | 6fc8fada69ff787977ba90c5f02d00b5b2f9336a (diff) | |
download | pylint-git-3c180dff050af44e7b4f9adf1ab872031fb9f6a8.tar.gz |
Rename `broad-except` and new check `broad-exception-raised` (#7709)
Co-authored-by: Pierre Sassoulas <pierre.sassoulas@gmail.com>
Diffstat (limited to 'doc/user_guide')
-rw-r--r-- | doc/user_guide/checkers/features.rst | 4 | ||||
-rw-r--r-- | doc/user_guide/messages/messages_overview.rst | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/user_guide/checkers/features.rst b/doc/user_guide/checkers/features.rst index f6616617c..916f8c8f4 100644 --- a/doc/user_guide/checkers/features.rst +++ b/doc/user_guide/checkers/features.rst @@ -440,7 +440,7 @@ Exceptions checker Messages :duplicate-except (W0705): *Catching previously caught exception type %s* Used when an except catches a type that was already caught by a previous handler. -:broad-except (W0703): *Catching too general exception %s* +:broad-exception-caught (W0718): *Catching too general exception %s* Used when an except catches a too general exception, possibly burying unrelated errors. :raise-missing-from (W0707): *Consider explicitly re-raising using %s'%s from %s'* @@ -462,6 +462,8 @@ Exceptions checker Messages operations between exceptions in except handlers. :bare-except (W0702): *No exception type(s) specified* Used when an except clause doesn't specify exceptions type to catch. +:broad-exception-raised (W0719): *Raising too general exception: %s* + Used when an except raises a too general exception. :try-except-raise (W0706): *The except handler raises immediately* Used when an except handler uses raise as its first or only operator. This is useless because it raises back the exception immediately. Remove the raise diff --git a/doc/user_guide/messages/messages_overview.rst b/doc/user_guide/messages/messages_overview.rst index 0b96b275b..a5d2a3b12 100644 --- a/doc/user_guide/messages/messages_overview.rst +++ b/doc/user_guide/messages/messages_overview.rst @@ -217,7 +217,8 @@ All messages in the warning category: warning/bare-except warning/binary-op-exception warning/boolean-datetime - warning/broad-except + warning/broad-exception-caught + warning/broad-exception-raised warning/cell-var-from-loop warning/comparison-with-callable warning/confusing-with-statement @@ -344,6 +345,7 @@ All renamed messages in the warning category: :maxdepth: 1 :titlesonly: + warning/broad-except warning/cache-max-size-none warning/implicit-str-concat-in-sequence warning/lru-cache-decorating-method |