File: exceptions.py

package info (click to toggle)
python-ytmusicapi 1.10.2-2
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 3,412 kB
  • sloc: python: 4,324; sh: 14; makefile: 12
file content (12 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
class BadOAuthClient(Exception):
    """
    OAuth client request failure.
    Ensure provided client_id and secret are correct and YouTubeData API is enabled.
    """


class UnauthorizedOAuthClient(Exception):
    """
    OAuth client lacks permissions for specified token.
    Token can only be refreshed by OAuth credentials used for its creation.
    """