update error code and comment
This commit is contained in:
parent
7f0751c27e
commit
a28febb0b4
1 changed files with 1 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue