diff --git a/poetry/publishing/uploader.py b/poetry/publishing/uploader.py index 798b2533af8..a4a25956367 100644 --- a/poetry/publishing/uploader.py +++ b/poetry/publishing/uploader.py @@ -69,7 +69,7 @@ def adapter(self) -> adapters.HTTPAdapter: retry = util.Retry( connect=5, total=10, - method_whitelist=["GET"], + allowed_methods=["GET"], status_forcelist=[500, 501, 502, 503], )