Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

Commit

Permalink
fix issue #584
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremylow committed Nov 3, 2018
1 parent be6f2b3 commit 98ef62f
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 @@ -4994,7 +4994,7 @@ def _RequestUrl(self, url, verb, data=None, json=None, enforce_auth=True):
else:
resp = 0 # if not a POST or GET request

if url and self.rate_limit:
if url and self.rate_limit and resp:
limit = resp.headers.get('x-rate-limit-limit', 0)
remaining = resp.headers.get('x-rate-limit-remaining', 0)
reset = resp.headers.get('x-rate-limit-reset', 0)
Expand Down

0 comments on commit 98ef62f

Please sign in to comment.