Skip to content

InitResponse has no error attribute when success=False #18

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.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions