aboutsummaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/deviantart.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@gmail.com>2020-05-03 00:06:41 -0400
committerLibravatarUnit 193 <unit193@gmail.com>2020-05-03 00:06:41 -0400
commitf5a2f273c0ccfac264ddfd45384dadfe25d9d7a5 (patch)
tree92f4a00290fc49d27badcde094910f7a5bb8f783 /gallery_dl/extractor/deviantart.py
parent6979a952d58bb018e3636276f141ae28c4599143 (diff)
parent90e50db2e3c38f523bb5195d295290b06e5cedb0 (diff)
Update upstream source from tag 'upstream/1.13.6'
Update to upstream version '1.13.6' with Debian dir 56019140fd27c135929da929f616e2bc3456deb9
Diffstat (limited to 'gallery_dl/extractor/deviantart.py')
-rw-r--r--gallery_dl/extractor/deviantart.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gallery_dl/extractor/deviantart.py b/gallery_dl/extractor/deviantart.py
index ca722b8..2631052 100644
--- a/gallery_dl/extractor/deviantart.py
+++ b/gallery_dl/extractor/deviantart.py
@@ -1006,7 +1006,8 @@ class DeviantartOAuthAPI():
msg = "API responded with {} {}".format(
status, response.reason)
if status == 429:
- self.delay += 1
+ if self.delay < 9:
+ self.delay += 1
self.log.warning("%s. Using %ds delay.", msg, 2 ** self.delay)
else:
self.log.error(msg)