Skip to content

Define and use a base Exception class for the package #49

Description

@KlaasH

There are several places where this raises a custom exception with raise Exception(...), e.g.

raise Exception('Must specify both client_id and client_secret to use authentication')
.

Making users of the package catch Exception is not very nice. Even if we don't need subtypes, we should define a base Exception class for the package so that people can make their exception handling more specific.

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