X-Git-Url: https://sigrok.org/gitweb/?p=libsigrokdecode.git;a=blobdiff_plain;f=util.c;h=6dbeb2f249acce02fe953340c146f847d6a1cf6c;hp=a4268ec176315e92181da6b85da07cd387b02d30;hb=63b1026d367275c7171da7dc7d5ac675a420f485;hpb=abeeed8b6da45e1854bc151a8175836b5ca38e34 diff --git a/util.c b/util.c index a4268ec..6dbeb2f 100644 --- a/util.c +++ b/util.c @@ -46,7 +46,7 @@ SRD_PRIV int py_attr_as_str(const PyObject *py_obj, const char *attr, } if (!(py_str = PyObject_GetAttrString((PyObject *)py_obj, attr))) { - catch_exception(""); + srd_exception_catch(""); return SRD_ERR_PYTHON; } @@ -150,7 +150,7 @@ err_out: Py_XDECREF(py_encstr); if (PyErr_Occurred()) { - catch_exception("string conversion failed"); + srd_exception_catch("string conversion failed"); } return ret;