mirror of
https://github.com/sprockets/sprockets.mixins.http.git
synced 2024-11-15 03:00:29 +00:00
5998afd1e0
Only handle OSError and httpclient.HTTPError. - We can assume any instance of httpclient.HTTPError is a failure unrelated to the status code of the response. This is due to sprockets.mixins.http setting `raise_error=False` when making the request. - ConnectionError and socket.gaierror are both instances of OSError - CurlError is an instance of tornado.httpclient.HTTPError - Other instances of tornado.httpclient.HTTPError include HTTPTimeoutError and HTTPStreamClosedError Also needed to fix the instance assertions in the test. It was always true as it was evaluating the truthyness of a list - not the isinstance values. |
||
---|---|---|
.. | ||
api.rst | ||
conf.py | ||
history.rst | ||
index.rst |