Skip to content

Commit

Permalink
Merge pull request #672 from mfocko/urllib-retry-deprecation
Browse files Browse the repository at this point in the history
Switch ‹Retry› constructor to ‹allowed_methods›

Since ‹method_whitelist› is being deprecated.
Signed-off-by: Matej Focko mfocko@redhat.com
Merge once it doesn't break F34


N/A

Reviewed-by: Jiri Popelka <None>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Nov 26, 2022
2 parents 67470ef + 22ad95e commit fb500cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ogr/services/github/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(
total=int(max_retries),
read=0,
# Retry mechanism active for these HTTP methods:
method_whitelist=["DELETE", "GET", "PATCH", "POST", "PUT"],
allowed_methods=["DELETE", "GET", "PATCH", "POST", "PUT"],
# Only retry on following HTTP status codes
status_forcelist=[500, 503, 403, 401],
raise_on_status=False,
Expand Down

0 comments on commit fb500cb

Please sign in to comment.