diff options
author | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 13:41:22 -0700 |
---|---|---|
committer | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 13:41:22 -0700 |
commit | 40337989ba5056432c9f2af3c42267e5ee9e3e18 (patch) | |
tree | 25a680529c68fcdd7886b4b064845c3e371e167e /requests/exceptions.py | |
parent | e75853fc04102c7f72f2e955b63f9692c472f64a (diff) | |
download | python-requests-40337989ba5056432c9f2af3c42267e5ee9e3e18.tar python-requests-40337989ba5056432c9f2af3c42267e5ee9e3e18.tar.gz |
Imported Upstream version 0.11.1
Diffstat (limited to 'requests/exceptions.py')
-rw-r--r-- | requests/exceptions.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/requests/exceptions.py b/requests/exceptions.py index d5b2ab1..3c262e3 100644 --- a/requests/exceptions.py +++ b/requests/exceptions.py @@ -30,3 +30,9 @@ class URLRequired(RequestException): class TooManyRedirects(RequestException): """Too many redirects.""" + +class MissingSchema(RequestException, ValueError): + """The URL schema (e.g. http or https) is missing.""" + +class InvalidSchema(RequestException, ValueError): + """See defaults.py for valid schemas."""
\ No newline at end of file |