aboutsummaryrefslogtreecommitdiffstats
path: root/sync.py
diff options
context:
space:
mode:
Diffstat (limited to 'sync.py')
-rwxr-xr-xsync.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sync.py b/sync.py
index 1450663..5543265 100755
--- a/sync.py
+++ b/sync.py
@@ -170,7 +170,9 @@ def main():
open_db()
s = requests.Session()
- retries = Retry(total=5, backoff_factor=1, status_forcelist=[ 502, 503, 504 ])
+ retries = Retry(total=16,
+ backoff_factor=1.5,
+ status_forcelist=[ 429, 502, 503, 504 ])
s.mount('https://', HTTPAdapter(max_retries=retries))
handle_auth(s)