Skip to content

Don't ignore JSON decoding errors #193

@jasonpaulos

Description

@jasonpaulos

Summary

Currently if a JSON algod request cannot parse the response, it just returns None:

try:
return json.load(resp)
except json.JSONDecodeError:
return None

Scope

We should really return an error message in this case instead.

Urgency

It's important to display the proper error if decoding is unsuccessful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions