Skip to content

The error validation within _get_http_response is insufficiently rigorous, leading to a secondary exception. #34

@vistart

Description

@vistart

If the following access HTTP status code is 204, then

data = await response.json()

the data variable will be None.

logger.error(f"An error occurred: {e} - {data['message']}")

This will result in a secondary exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions