Spaces:
Running
Running
Download bot/errors.py from Mega-Evolutions/Auto-Rename: direct link, hf CLI and curl.
- Browser
- Download file 396 Bytes
-
https://huggingface.co/spaces/Mega-Evolutions/Auto-Rename/resolve/main/bot/errors.py
- Command line
-
hf download hf://spaces/Mega-Evolutions/Auto-Rename/bot/errors.py
-
curl -L -o errors.py https://huggingface.co/spaces/Mega-Evolutions/Auto-Rename/resolve/main/bot/errors.py
396 Bytes
| 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 | |