Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
add 429 to the status_forcelist
Browse files Browse the repository at this point in the history
  • Loading branch information
gilesknap committed May 17, 2022
1 parent 60d5581 commit a8cefbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gphotos_sync/GooglePhotosDownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/gphotos_sync/authorize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a8cefbc

Please sign in to comment.