From d36fc133a12046c645b104c63f33ab8cfec1ab3e Mon Sep 17 00:00:00 2001 From: scbedd <45376673+scbedd@users.noreply.github.com> Date: Wed, 2 Sep 2020 15:35:58 -0700 Subject: [PATCH] 404 python erroring sanitize_setup. should not be --- eng/tox/sanitize_setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eng/tox/sanitize_setup.py b/eng/tox/sanitize_setup.py index baaaedaca04d..ceeb1e85d77a 100644 --- a/eng/tox/sanitize_setup.py +++ b/eng/tox/sanitize_setup.py @@ -42,7 +42,12 @@ def update_requires(setup_py_path, requires_dict): def is_required_version_on_pypi(package_name, spec): client = PyPIClient() - versions = [str(v) for v in client.get_ordered_versions(package_name) if str(v) in spec] + try: + pypi_results = client.get_ordered_versions(package_name) + except: + pypi_results = [] + + versions = [str(v) for v in pypi_results if str(v) in spec] return versions