# Path: twitch/exceptions.py
# class TwitchAuthException(TwitchException):
#     pass


from twitch.exceptions import TwitchAuthException


def oauth_required(func):
    def wrapper(*args, **kwargs):
        if not args[0]._oauth_token:

# Path: twitch/exceptions.py
# class TwitchAuthException(TwitchException):
#     pass


# Path: twitch/decorators.py
from twitch.exceptions import TwitchAuthException



def oauth_required(func):
    def wrapper(*args, **kwargs):
        if not args[0]._oauth_token:

            raise TwitchAuthException("OAuth token required")