Skip to content

JSON decode error when Octopus API is unavailable #20

@peteretep

Description

@peteretep

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions