Skip to content

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

Merged
miss-islington merged 4 commits into
python:masterfrom
brettcannon:issue36298
Mar 22, 2019
Merged

bpo-36298: Raise ModuleNotFoundError in pyclbr when a module can't be found#12358
miss-islington merged 4 commits into
python:masterfrom
brettcannon:issue36298

Conversation

@brettcannon

@brettcannon brettcannon commented Mar 15, 2019

Copy link
Copy Markdown
Member

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

@mental32 mental32 left a comment

Copy link
Copy Markdown
Contributor

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.

Comment thread Lib/pyclbr.py Outdated
Comment thread Lib/pyclbr.py
Comment thread Lib/pyclbr.py
@ned-deily

Copy link
Copy Markdown
Member

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

@brettcannon

Copy link
Copy Markdown
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
Copy Markdown
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