summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reddit.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/reddit.py
parente4887ae6b00c50fbbde531cc274c77b076bd821d (diff)
New upstream version 1.13.4upstream/1.13.4
Diffstat (limited to 'gallery_dl/extractor/reddit.py')
-rw-r--r--gallery_dl/extractor/reddit.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gallery_dl/extractor/reddit.py b/gallery_dl/extractor/reddit.py
index a312c1c..d0232cc 100644
--- a/gallery_dl/extractor/reddit.py
+++ b/gallery_dl/extractor/reddit.py
@@ -313,8 +313,7 @@ class RedditAPI():
remaining = response.headers.get("x-ratelimit-remaining")
if remaining and float(remaining) < 2:
- reset = response.headers["x-ratelimit-reset"]
- self.extractor.wait(seconds=reset, reason="rate limit reset")
+ self.extractor.wait(seconds=response.headers["x-ratelimit-reset"])
return self._call(endpoint, params)
data = response.json()