Skip to content

Commit

Permalink
Merge pull request #273 from btidor/master
Browse files Browse the repository at this point in the history
Bugfix: queries with retry=True return None when rate-limited
  • Loading branch information
RouxRC committed Jan 11, 2015
2 parents 34af550 + 19e3d13 commit ae935be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twitter/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ def _handle_response_with_retry(self, req, uri, arg_data, _timeout=None):
print("Service unavailable; waiting for %ds..." % delay, file=sys.stderr)
else:
raise
if isinstance(retry, int):
if isinstance(retry, int) and not isinstance(retry, bool):
if retry <= 0:
raise
retry -= 1
Expand Down

0 comments on commit ae935be

Please sign in to comment.