Skip to content

InitResponse has no error attribute when success=False #18

@pondem87

Description

@pondem87

if not self.success:

Here you return from constructor if not successful i.e. there was an error. However you return before assigning the error value to the error attribute which results in a run time exception when one tries to access the error attribute after the call was not successful. Fix this by "self.error = data["error"]" before return.

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