Skip to content

Commit

Permalink
cc: Disable new raise-missing-from pylint rule
Browse files Browse the repository at this point in the history
This rule was added in pylint 2.6. I checked a few of the issues it
flagged, but they were mostly trivial conversions from KeyError raised
by a 1-line try body to a more specific exception, so chaining
exceptions would not make the backtraces more useful.

Perhaps it's worth revisiting the issues it flagged some day, but in
practice it's also fine to add a 'from' clause while debugging and
encountering an exception that is not easy to trace to its root.
  • Loading branch information
mthuurne committed Aug 24, 2020
1 parent a6d8066 commit 235878e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ disable=bad-continuation,
# but not useful to have enabled all the time.
no-member,
# False positives when inheriting from typing.Generic.
raise-missing-from,
# Most cases flagged by this have trivial 'try' bodies, so not a lot
# is gained by chaining exceptions.

[REPORTS]

Expand Down

0 comments on commit 235878e

Please sign in to comment.