summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/reddit.py
diff options
context:
space:
mode:
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()