X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=controller.c;h=672ac93258b67d8c8317c9508ae581c337f302a4;hp=c6347c0a93b3d7f826ce1172a1d6413d6ec381a9;hb=7fc7bde666b3c1234e3d9612caa0388381881059;hpb=32cfb920625182c03eb4a4564ffdfa9d2b08f15c diff --git a/controller.c b/controller.c index c6347c0..672ac93 100644 --- a/controller.c +++ b/controller.c @@ -412,8 +412,10 @@ err_out: Py_XDECREF(py_dec_optkeys); Py_XDECREF(py_dec_options); g_free(key); - if (PyErr_Occurred()) + if (PyErr_Occurred()) { srd_exception_catch("Stray exception in srd_inst_option_set()."); + ret = SRD_ERR_PYTHON; + } return ret; }