How to use the catt.error.CattUserError function in catt

To help you get started, we’ve selected a few catt examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github skorokithakis / catt / catt / cli.py View on Github external
def main():
    try:
        return cli(obj={}, default_map=readconfig())
    except CattUserError as err:
        sys.exit("Error: {}.".format(str(err)))
github skorokithakis / catt / catt / error.py View on Github external
pass


class APIError(CattError):
    # The scope of this exception is probably going to be a bit broad.
    # We can split it into more exceptions once the api is more mature.
    pass


class SubtitlesError(CattUserError):
    """ When a specified subtitles file cannot be found or its encoding cannot be determined. """

    pass


class CliError(CattUserError):
    """ When the cli user passes invalid commands/options/arguments to catt. """

    pass


class CastError(CattUserError):
    """ When operations are attempted with non-existent or inactive devices. """

    pass


class ControllerError(CattUserError):
    """ When a controller is incapable of the requested action. """

    pass
github skorokithakis / catt / catt / error.py View on Github external
pass


class ControllerError(CattUserError):
    """ When a controller is incapable of the requested action. """

    pass


class ExtractionError(CattUserError):
    """ When the requested media cannot be found or processed by youtube-dl. """

    pass


class FormatError(CattUserError):
    """ When the supplied format filter is invalid or excludes all available formats. """

    pass
github skorokithakis / catt / catt / error.py View on Github external
pass


class CastError(CattUserError):
    """ When operations are attempted with non-existent or inactive devices. """

    pass


class ControllerError(CattUserError):
    """ When a controller is incapable of the requested action. """

    pass


class ExtractionError(CattUserError):
    """ When the requested media cannot be found or processed by youtube-dl. """

    pass


class FormatError(CattUserError):
    """ When the supplied format filter is invalid or excludes all available formats. """

    pass
github skorokithakis / catt / catt / error.py View on Github external
pass


class CliError(CattUserError):
    """ When the cli user passes invalid commands/options/arguments to catt. """

    pass


class CastError(CattUserError):
    """ When operations are attempted with non-existent or inactive devices. """

    pass


class ControllerError(CattUserError):
    """ When a controller is incapable of the requested action. """

    pass


class ExtractionError(CattUserError):
    """ When the requested media cannot be found or processed by youtube-dl. """

    pass


class FormatError(CattUserError):
    """ When the supplied format filter is invalid or excludes all available formats. """

    pass
github skorokithakis / catt / catt / error.py View on Github external
pass


class SubtitlesError(CattUserError):
    """ When a specified subtitles file cannot be found or its encoding cannot be determined. """

    pass


class CliError(CattUserError):
    """ When the cli user passes invalid commands/options/arguments to catt. """

    pass


class CastError(CattUserError):
    """ When operations are attempted with non-existent or inactive devices. """

    pass


class ControllerError(CattUserError):
    """ When a controller is incapable of the requested action. """

    pass


class ExtractionError(CattUserError):
    """ When the requested media cannot be found or processed by youtube-dl. """

    pass
github skorokithakis / catt / catt / error.py View on Github external
pass


class PlaylistError(CattError):
    """ When playlist specific operations are attempted with non-playlist info. """

    pass


class APIError(CattError):
    # The scope of this exception is probably going to be a bit broad.
    # We can split it into more exceptions once the api is more mature.
    pass


class SubtitlesError(CattUserError):
    """ When a specified subtitles file cannot be found or its encoding cannot be determined. """

    pass


class CliError(CattUserError):
    """ When the cli user passes invalid commands/options/arguments to catt. """

    pass


class CastError(CattUserError):
    """ When operations are attempted with non-existent or inactive devices. """

    pass