Skip to content

zamba.exceptions

Classes

ZambaFfmpegException

Bases: Exception

Source code in zamba/exceptions.py
4
5
6
7
class ZambaFfmpegException(Exception):
    def __init__(self, stderr: Union[bytes, str]):
        message = stderr.decode("utf8", errors="replace") if isinstance(stderr, bytes) else stderr
        super().__init__(f"Video loading failer with error:\n{message}")

Functions

__init__(stderr: Union[bytes, str])
Source code in zamba/exceptions.py
5
6
7
def __init__(self, stderr: Union[bytes, str]):
    message = stderr.decode("utf8", errors="replace") if isinstance(stderr, bytes) else stderr
    super().__init__(f"Video loading failer with error:\n{message}")