From f8d47c13d36cf6b945b555ca0d7cd63dc6a090fb Mon Sep 17 00:00:00 2001 From: wcdolphin Date: Sun, 12 Jan 2014 15:21:27 -0800 Subject: [PATCH] Adds retry_after attribute to TwythonRateLimitError --- twython/exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twython/exceptions.py b/twython/exceptions.py index b9c9df5..4aa7dba 100644 --- a/twython/exceptions.py +++ b/twython/exceptions.py @@ -53,6 +53,8 @@ class TwythonRateLimitError(TwythonError): # pragma: no cover msg = '%s (Retry after %d seconds)' % (msg, retry_after) TwythonError.__init__(self, msg, error_code=error_code) + self.retry_after = retry_after + class TwythonStreamError(TwythonError): """Raised when an invalid response from the Stream API is received"""