mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
All methods are valid now
This commit is contained in:
@@ -30,5 +30,5 @@ from .status_codes import codes
|
||||
from .config import settings
|
||||
from .exceptions import (
|
||||
RequestException, AuthenticationError, Timeout, URLRequired,
|
||||
InvalidMethod, TooManyRedirects
|
||||
TooManyRedirects
|
||||
)
|
||||
|
||||
@@ -12,15 +12,12 @@ class RequestException(Exception):
|
||||
|
||||
class AuthenticationError(RequestException):
|
||||
"""The authentication credentials provided were invalid."""
|
||||
|
||||
|
||||
class Timeout(RequestException):
|
||||
"""The request timed out."""
|
||||
|
||||
class URLRequired(RequestException):
|
||||
"""A valid URL is required to make a request."""
|
||||
|
||||
class InvalidMethod(RequestException):
|
||||
"""An inappropriate method was attempted."""
|
||||
|
||||
class TooManyRedirects(RequestException):
|
||||
"""Too many redirects."""
|
||||
|
||||
Reference in New Issue
Block a user