/* Import the Python module. */
if (!(d->py_mod = PyImport_ImportModule(module_name))) {
- catch_exception("Import of '%s' failed.", module_name);
+ srd_exception_catch("Import of '%s' failed.", module_name);
goto err_out;
}
return NULL;
if (!(py_str = PyObject_GetAttrString(dec->py_mod, "__doc__"))) {
- catch_exception("");
+ srd_exception_catch("");
return NULL;
}