Skip to content

API errors handling is incorrect #1

Description

@olegwtf

There is no error object in JSON received from API, so I got python exception instead of correct exception: https://github.com/koty/python-stackpath/blob/master/stackpath/stackpath.py#L75-L77

This should be resp['status'] and resp['error']

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions