Spaces:
Running
Running
File size: 396 Bytes
58f00c9 5f400f8 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | class Cancelled(Exception):
"""Raised inside a job when the user cancels it."""
class MediaError(RuntimeError):
"""ffprobe / ffmpeg failed."""
class FormatError(Exception):
"""A saved-format operation was refused; ``code`` is ``limit`` (12 formats already) or ``taken`` (name in use)."""
def __init__(self, code: str):
super().__init__(code)
self.code = code
|