markgdev/OctopusAgile

JSON decode error when Octopus API is unavailable

Opened this issue · 0 comments

The get_raw_rates function does not check the returned http status, resulting in a json decode error when the Octopus API is unavailable.
It would be good to wrap the API call in a try/except block and give a more coherent error.
Should it then retry?