Skip to content

Conversation

@jakobheine
Copy link
Contributor

The documentation previously listed requests.URLRequired as a valid exception, suggesting it would be raised for invalid URLs. However, this exception has been dead code since commit ab27027 (2012) and is never actually raised.

Instead, invalid URLs raise MissingSchema, InvalidSchema, or InvalidURL, none of which were documented. This commit removes URLRequired from the documentation to reflect the actual behavior and prevent confusion.

The documentation previously listed `requests.URLRequired` as a valid
exception, suggesting it would be raised for invalid URLs. However,
this exception has been dead code since commit ab27027 (2012) and is
never actually raised.

Instead, invalid URLs raise `MissingSchema`, `InvalidSchema`, or
`InvalidURL`, none of which were documented. This commit removes
`URLRequired` from the documentation to reflect the actual behavior
and prevent confusion.

Signed-off-by: jakobheine <[email protected]>
@nateprewitt
Copy link
Member

Thanks, @jakobheine!

@nateprewitt nateprewitt merged commit f761e74 into psf:main Feb 10, 2025
29 of 30 checks passed
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.

2 participants