Skip to content
Commit dcf64300 authored by Nao Pross's avatar Nao Pross Committed by Jonas Schmid
Browse files

c_extension.c: initiate a Python exeptions in case the camera has been disconnected:

If for any reason (e.g. the camera has been disconnected) the data stream from the camera is no longer available, without these checks the entire python interpreter crashes with a nice segmentation fault.

These allow to handle the error from within Python with the following code snippet:

```
    try:
        o3000.video_images_get()
    except RuntimeError:
        # handle the error, e.g. try to restart the o3000 driver
```
parent b98783d1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment