Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyPIClient Retries #26963

Merged
merged 2 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add a default of 3 retries
scbedd committed Oct 20, 2022
commit 59bae2530daddc760c2ca8493866abc136b75c36
2 changes: 1 addition & 1 deletion tools/azure-sdk-tools/pypi_tools/pypi.py
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ def get_pypi_xmlrpc_client():
class PyPIClient:
def __init__(self, host="https://pypi.org"):
self._host = host
self._http = PoolManager(retries=Retry(raise_on_status=True))
self._http = PoolManager(retries=Retry(total=3, raise_on_status=True))

def project(self, package_name):
response = self._http.request(