summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/util.c b/util.c
index 060c253..090c0c1 100644
--- a/util.c
+++ b/util.c
@@ -46,8 +46,7 @@ int py_attr_as_str(PyObject *py_obj, const char *attr, char **outstr)
}
if (!(py_str = PyObject_GetAttrString(py_obj, attr))) {
- /* TODO: report exception message/traceback to err/dbg */
- PyErr_Clear();
+ catch_exception("");
return SRD_ERR_PYTHON;
}
@@ -149,9 +148,7 @@ err_out:
Py_XDECREF(py_encstr);
if (PyErr_Occurred()) {
- srd_dbg("srd: string conversion failed");
- /* TODO: dump exception to srd_dbg */
- PyErr_Clear();
+ catch_exception("string conversion failed");
}
return ret;