2018-10-31 17:08:29 +01:00
|
|
|
# coding=utf-8
|
2019-09-16 22:04:27 -04:00
|
|
|
from __future__ import absolute_import
|
2018-10-31 17:08:29 +01:00
|
|
|
from subliminal import ProviderError
|
|
|
|
|
|
|
|
|
|
|
|
class TooManyRequests(ProviderError):
|
|
|
|
"""Exception raised by providers when too many requests are made."""
|
|
|
|
pass
|
|
|
|
|
|
|
|
class APIThrottled(ProviderError):
|
|
|
|
pass
|
2019-09-22 17:24:02 +02:00
|
|
|
|
|
|
|
class ParseResponseError(ProviderError):
|
|
|
|
"""Exception raised by providers when they are not able to parse the response."""
|
|
|
|
pass
|
2020-05-08 10:32:12 +01:00
|
|
|
|
|
|
|
class IPAddressBlocked(ProviderError):
|
|
|
|
"""Exception raised when providers block requests from IP Address."""
|
|
|
|
pass
|