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

bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found #12358

Merged
merged 4 commits into from
Mar 22, 2019

Conversation

brettcannon
Copy link
Member

@brettcannon brettcannon commented Mar 15, 2019

Before, an AttributeError was raised due to trying to access an attribute that exists on specs but having received None instead for a non-existent module.

https://bugs.python.org/issue36298

Copy link
Contributor

@mental32 mental32 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed diff (looks good), Interested to know your thoughts on the comments.

Lib/pyclbr.py Outdated Show resolved Hide resolved
Lib/pyclbr.py Show resolved Hide resolved
Lib/pyclbr.py Show resolved Hide resolved
@ned-deily
Copy link
Member

@brettcannon Is there a particular reason you think this should be backported to 3.6?

@brettcannon
Copy link
Member Author

@ned-deily no, and since it's a change in exception it probably shouldn't be backported, so I have dropped the backporting idea.

@miss-islington
Copy link
Contributor

@brettcannon: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 5086589 into python:master Mar 22, 2019
@brettcannon brettcannon deleted the issue36298 branch July 12, 2019 22:05
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.

6 participants