FaceswapError

exception lib.utils.FaceswapError

Faceswap Error for handling specific errors with useful information.

Raises:

FaceswapError – on a captured error

Example

>>> from lib.utils import FaceswapError
>>> try:
...     # Some code that may raise an error
... except SomeError:
...     raise FaceswapError("There was an error while running the code")
FaceswapError: There was an error while running the code