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.
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.