Skip to content

Commit

Permalink
404 python erroring sanitize_setup. should not be (#13532)
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Sep 3, 2020
1 parent 223459d commit cdfb619
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion eng/tox/sanitize_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit cdfb619

Please sign in to comment.