Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def main():
try:
return cli(obj={}, default_map=readconfig())
except CattUserError as err:
sys.exit("Error: {}.".format(str(err)))
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
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
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
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
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
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