Adds retry_after attribute to TwythonRateLimitError #304
1 changed files with 2 additions and 0 deletions
|
|
@ -53,6 +53,8 @@ class TwythonRateLimitError(TwythonError): # pragma: no cover
|
||||||
msg = '%s (Retry after %d seconds)' % (msg, retry_after)
|
msg = '%s (Retry after %d seconds)' % (msg, retry_after)
|
||||||
TwythonError.__init__(self, msg, error_code=error_code)
|
TwythonError.__init__(self, msg, error_code=error_code)
|
||||||
|
|
||||||
|
self.retry_after = retry_after
|
||||||
|
|
||||||
|
|
||||||
class TwythonStreamError(TwythonError):
|
class TwythonStreamError(TwythonError):
|
||||||
"""Raised when an invalid response from the Stream API is received"""
|
"""Raised when an invalid response from the Stream API is received"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue