Merge pull request #13406 from Bo98/pypi-error

utils/pypi: handle HTTP error codes
This commit is contained in:
Bo Anderson 2022-06-10 19:31:13 +01:00 committed by GitHub
commit b40b73d0d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ module PyPI
else
"https://pypi.org/pypi/#{@name}/json"
end
out, _, status = curl_output metadata_url, "--location"
out, _, status = curl_output metadata_url, "--location", "--fail"
return unless status.success?