Merge pull request #13406 from Bo98/pypi-error
utils/pypi: handle HTTP error codes
This commit is contained in:
commit
b40b73d0d8
@ -57,7 +57,7 @@ module PyPI
|
|||||||
else
|
else
|
||||||
"https://pypi.org/pypi/#{@name}/json"
|
"https://pypi.org/pypi/#{@name}/json"
|
||||||
end
|
end
|
||||||
out, _, status = curl_output metadata_url, "--location"
|
out, _, status = curl_output metadata_url, "--location", "--fail"
|
||||||
|
|
||||||
return unless status.success?
|
return unless status.success?
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user