update error code and comment

This commit is contained in:
Guru Devanla 2013-01-15 16:43:50 -06:00
parent 7f0751c27e
commit a28febb0b4

View file

@ -203,6 +203,7 @@ class Twython(object):
'error', 'An error occurred processing your request.')
self._last_call['api_error'] = error_msg
#Twitter API 1.1 , always return 429 when rate limit is exceeded
exceptionType = TwythonRateLimitError if response.status_code == 429 else TwythonError
raise exceptionType(error_msg,