Coverage for requests.exceptions : 73%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# -*- coding: utf-8 -*-
requests.exceptions ~~~~~~~~~~~~~~~~~~~
This module contains the set of Requests' exceptions.
"""
"""There was an ambiguous exception that occurred while handling your request."""
""" Initialize RequestException with `request` and `response` objects. """ response = kwargs.pop('response', None) self.response = response self.request = kwargs.pop('request', None) if (response is not None and not self.request and hasattr(response, 'request')): self.request = self.response.request super(RequestException, self).__init__(*args, **kwargs)
"""An HTTP error occurred."""
"""A Connection error occurred."""
"""A proxy error occurred."""
"""An SSL error occurred."""
"""The request timed out."""
"""A valid URL is required to make a request."""
"""Too many redirects."""
"""The URL schema (e.g. http or https) is missing."""
"""See defaults.py for valid schemas."""
""" The URL provided was somehow invalid. """
"""The server declared chunked encoding but sent an invalid chunk."""
"""Failed to decode response content""" |