summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/twitter.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@ubuntu.com>2020-04-14 18:18:40 -0400
committerLibravatarUnit 193 <unit193@ubuntu.com>2020-04-14 18:18:40 -0400
commitcf188f30e1c27bdb900fa2623a9ff91b944633b2 (patch)
tree94803cd79aa8aaefd09d9bbc7b9c8029b415c885 /gallery_dl/extractor/twitter.py
parente4887ae6b00c50fbbde531cc274c77b076bd821d (diff)
New upstream version 1.13.4upstream/1.13.4
Diffstat (limited to 'gallery_dl/extractor/twitter.py')
-rw-r--r--gallery_dl/extractor/twitter.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gallery_dl/extractor/twitter.py b/gallery_dl/extractor/twitter.py
index cbb075c..03ce3dd 100644
--- a/gallery_dl/extractor/twitter.py
+++ b/gallery_dl/extractor/twitter.py
@@ -224,8 +224,7 @@ class TwitterExtractor(Extractor):
if response.status_code == 429 or \
response.headers.get("x-rate-limit-remaining") == "0":
if self.logged_in:
- reset = response.headers.get("x-rate-limit-reset")
- self.wait(until=reset, reason="rate limit reset")
+ self.wait(until=response.headers.get("x-rate-limit-reset"))
else:
_guest_token.invalidate()
return self._video_from_tweet(tweet_id)