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 wrong exception raised in infer_import_from #1110

Merged
merged 1 commit into from Jul 21, 2021

Conversation

Pierre-Sassoulas
Copy link
Member

Description

We expect to raise InferenceError not AttributeInferenceError in this function.

Type of Changes

Type
βœ“ πŸ› Bug fix

Related Issue

Closes pylint-dev/pylint#4692

@Pierre-Sassoulas Pierre-Sassoulas added this to the 2.6.5 milestone Jul 20, 2021
@Pierre-Sassoulas Pierre-Sassoulas force-pushed the fix-wrong-error-raised-in-infer_import_from branch from 26dc1ef to 5094b03 Compare July 21, 2021 06:39
@Pierre-Sassoulas Pierre-Sassoulas merged commit ff6f9e7 into main Jul 21, 2021
@Pierre-Sassoulas Pierre-Sassoulas deleted the fix-wrong-error-raised-in-infer_import_from branch July 21, 2021 06:45
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.

AttributeInferenceError with click and pylint 2.9
1 participant