Skip to content

JSON decode error when Octopus API is unavailable #20

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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