- /* TODO: is this needed? */
- Py_XINCREF(next_di->py_instance);
- if (!(py_res = PyObject_CallMethod(next_di->py_instance, "decode",
- "KKO", start_sample, end_sample, data))) {
- if (PyErr_Occurred())
- PyErr_Print();
+ /* TODO: Is this needed? */
+ Py_XINCREF(next_di->py_inst);
+ srd_spew("Sending %d-%d to instance %s",
+ start_sample, end_sample,
+ next_di->inst_id);
+ if (!(py_res = PyObject_CallMethod(
+ next_di->py_inst, "decode", "KKO", start_sample,
+ end_sample, data))) {
+ srd_exception_catch("Calling %s decode(): ",
+ next_di->inst_id);