friendlypins.exceptions module

custom exceptions provided by our library

exception friendlypins.exceptions.RateLimitException(response)[source]

Bases: requests.exceptions.HTTPError

Helper class for extrapolating details about a rate limit error

Initialize RequestException with request and response objects.

property friendly_error

user friendly representation of the error message

Type

str

property pin_headers

reference to the pre-parsed HTTP headers returned from the API

Type

Headers

property rate_renewal

time, in the current locale, when requests will be allowed once again

Type

datetime.datetime