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.