- /* Get the 'Decoder' class as Python object. */
- py_res = PyObject_GetAttrString(py_mod, "Decoder"); /* NEWREF */
- if (!py_res) {
- if (PyErr_Occurred())
- PyErr_Print(); /* Returns void. */
- Py_XDECREF(py_mod);
- srd_err("Decoder class not found in PD module %s", name);
- return SRD_ERR_PYTHON; /* TODO: More specific error? */