summaryrefslogtreecommitdiff
path: root/controller.c
diff options
context:
space:
mode:
Diffstat (limited to 'controller.c')
-rw-r--r--controller.c4
1 files changed, 3 insertions, 1 deletions
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;
}