From a8cefbc69967d0876fe3bf2195bc48c6c362a5ba Mon Sep 17 00:00:00 2001 From: Giles Knap Date: Tue, 17 May 2022 19:59:22 +0100 Subject: [PATCH] add 429 to the status_forcelist --- src/gphotos_sync/GooglePhotosDownload.py | 2 +- src/gphotos_sync/authorize.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gphotos_sync/GooglePhotosDownload.py b/src/gphotos_sync/GooglePhotosDownload.py index 09b75b52..da03f24c 100644 --- a/src/gphotos_sync/GooglePhotosDownload.py +++ b/src/gphotos_sync/GooglePhotosDownload.py @@ -88,7 +88,7 @@ def __init__( retries = Retry( total=settings.max_retries, backoff_factor=5, - status_forcelist=[500, 502, 503, 504, 509], + status_forcelist=[500, 502, 503, 504, 509, 429], allowed_methods=frozenset(["GET", "POST"]), raise_on_status=False, respect_retry_after_header=True, diff --git a/src/gphotos_sync/authorize.py b/src/gphotos_sync/authorize.py index 9113ce98..dc3fd96f 100644 --- a/src/gphotos_sync/authorize.py +++ b/src/gphotos_sync/authorize.py @@ -112,7 +112,7 @@ def authorize(self): retries = Retry( total=self.max_retries, backoff_factor=5, - status_forcelist=[500, 502, 503, 504], + status_forcelist=[500, 502, 503, 504, 429], allowed_methods=frozenset(["GET", "POST"]), raise_on_status=False, respect_retry_after_header=True,