-
Notifications
You must be signed in to change notification settings - Fork 3k
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 NameError when handling InvalidRequirement in install_req_from_req_string #6419
Fix NameError when handling InvalidRequirement in install_req_from_req_string #6419
Conversation
…q_string Previously, an InvalidRequirement would raise a NameError while trying to raise an InstallationError because `req` was not defined. Discovered while working on pypa#6402.
@cjerdonek should I add a news file for this? It feels trivial since there are no open issues for it and I only caught it by accident while writing tests for other parts of that function. |
Yes, I think so. The bugfix number can reference the PR directly. |
Done ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A couple comments.
ceaafa5
to
5d14f3b
Compare
5d14f3b
to
3ec256d
Compare
3ec256d
to
c6036b7
Compare
Thanks again, @rouge8! 👍 (Note that I made a couple super tiny formatting-like tweaks before merging.) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Previously, an InvalidRequirement would raise a NameError while trying to raise an InstallationError because
req
was not defined.Discovered while working on #6402.