Skip to content
Myr

docs(exceptions): Remove unused exception URLRequired from documentation

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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.

authored by jakobheine · committed by jakobheine · parent fe0583b · Browse files · 1 file+0 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: jakobheine <me@jakobheine.de>

Diff stats

1 file+0 added−1 removed

  • other:+0 added−1 removed

1 file+0 added−1 removed

modified:docs/api.rst-1 removed
29 unmodified lines
3031.. autoexception:: requests.RequestException32.. autoexception:: requests.ConnectionError33.. autoexception:: requests.HTTPError34.. autoexception:: requests.URLRequired34.. autoexception:: requests.TooManyRedirects35.. autoexception:: requests.ConnectTimeout36.. autoexception:: requests.ReadTimeout37.. autoexception:: requests.Timeout
223 unmodified lines