libcamera/src/py/examples
Tomi Valkeinen 1fb31ac4f4 py: Use exceptions instead of returning error codes
We have multiple methods which return an error code, mimicking the C++
API. Using exceptions is more natural in the Python API, so change all
those methods to raise an Exception instead.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2023-05-30 18:29:09 +03:00
..
simple-cam.py py: Use exceptions instead of returning error codes 2023-05-30 18:29:09 +03:00
simple-capture.py py: Use exceptions instead of returning error codes 2023-05-30 18:29:09 +03:00
simple-continuous-capture.py py: Use exceptions instead of returning error codes 2023-05-30 18:29:09 +03:00