ESGF / esgf-installer

ESGF P2P Node Installer
https://esgf.llnl.gov/
Other
20 stars 21 forks source link

download_update() helper function not erroring out on bad requests #445

Closed William-Hill closed 6 years ago

William-Hill commented 6 years ago

A helper function called download_update() uses the Python requests module to download resources from the distribution mirrors. When a bad request is made, the function is saving error response HTML code to the local path where the resource was intended to be downloaded to instead of raising an error.

The requests raise_for_status() function should be added to signify a bad request.