Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix pylint failure "raise-missing-from" #17

Merged
merged 1 commit into from
Sep 8, 2020

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented Sep 6, 2020

pylint 2.6.0 released on 2020-08-20 added a new raise-missing-from
check, which fails on this code. It appears to suggest using an
explicit "from" whenever a chained exception is raised.

In this case, raising "from None" seems most appropriate, as we
are aiming to give the user a terse HTTP error without details of
any internal exceptions (which have already been logged).

pylint 2.6.0 released on 2020-08-20 added a new raise-missing-from
check, which fails on this code. It appears to suggest using an
explicit "from" whenever a chained exception is raised.

In this case, raising "from None" seems most appropriate, as we
are aiming to give the user a terse HTTP error without details of
any internal exceptions (which have already been logged).
@rohanpm rohanpm marked this pull request as ready for review September 6, 2020 23:22
@lmilbaum
Copy link
Contributor

lmilbaum commented Sep 7, 2020

pylint version should be pinned to avoid such cases

@rohanpm rohanpm merged commit 7c2c302 into release-engineering:master Sep 8, 2020
@rohanpm rohanpm deleted the auth-pylint-fix branch September 8, 2020 02:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants