Fix undocumented exceptions and deprecate URLRequired #325
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request addresses issue psf#6877 by updating the documentation to include previously undocumented exceptions in the Requests library. The following changes have been made:
Documentation Update: Added documentation for various exceptions that were not previously listed, ensuring that users have access to complete information about the exceptions they may encounter.
Deprecation of URLRequired: The
URLRequired
exception has been deprecated and removed from the codebase, as it was not being raised anywhere. A note has been added to the documentation indicating its deprecation, while maintaining backward compatibility for users who may still rely on it.These changes improve the clarity and accuracy of the Requests library documentation, helping users to better understand the exceptions that can be raised during usage.
Original Task: swe-requests/j1sk7x9nsne1
Author: Sam Stenner