Skip to content

Possible IndexOutOfRange error. #3

@DmytroHubernatorov

Description

@DmytroHubernatorov

return json.loads(r.text).get('Items')[0].get('ID')

This is bad practice to trust API response and rely string can be deserialized to array and array has at least 1 element.

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