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

Raise RequirementsFileParseError when missing closing quotation #11492

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

ret2libc
Copy link
Contributor

@ret2libc ret2libc commented Oct 6, 2022

shlex.split, used to split options in requirements.txt files, might raise a ValueError when the input string is not well formed. Catch the ValueError and re-raise it as a RequirementsFileParseError instead.

Fix #11491 .

shlex.split, used to split options in requirements.txt files, might
raise a ValueError when the input string is not well formed. Catch the
ValueError and re-raise it as a RequirementsFileParseError instead.
@ret2libc ret2libc force-pushed the raise-file-parse-error-no-valueerr branch from a69d1e1 to 3ca52dc Compare October 6, 2022 12:36
@pfmoore
Copy link
Member

pfmoore commented Oct 6, 2022

Thanks for the contribution!

@pfmoore pfmoore merged commit fe78726 into pypa:main Oct 6, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ValueError raised when parsing malformed requirements files
2 participants