Skip to content

George Exceptions

Custom George exceptions.

GeorgeError(message: str | None = None, error_value: Any | None = None)

Bases: Exception

George error exception.

Used for return values in the [ERROR] section of functions in TVPaint's documentation.

Source code in pytvpaint/george/exceptions.py
14
15
16
17
18
def __init__(
    self, message: str | None = None, error_value: Any | None = None
) -> None:
    super().__init__(f"{message}" if message else "")
    self.error_value = error_value

NoObjectWithIdError(obj_id: int)

Bases: pytvpaint.george.exceptions.GeorgeError

Exception raised when a TVPaint was not found given its id.

Source code in pytvpaint/george/exceptions.py
24
25
def __init__(self, obj_id: int) -> None:
    super().__init__(f"Can't find an object with id: {obj_id}")