Update error code for Twitter Rate Limits. This is for Twitter Api 1.1
This commit is contained in:
parent
87a3b44a30
commit
7f0751c27e
1 changed files with 1 additions and 1 deletions
|
|
@ -203,7 +203,7 @@ class Twython(object):
|
|||
'error', 'An error occurred processing your request.')
|
||||
self._last_call['api_error'] = error_msg
|
||||
|
||||
exceptionType = TwythonRateLimitError if response.status_code == 420 else TwythonError
|
||||
exceptionType = TwythonRateLimitError if response.status_code == 429 else TwythonError
|
||||
|
||||
raise exceptionType(error_msg,
|
||||
error_code=response.status_code,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue