ret_val = py::extract<decltype(ret_val)>(py_ret); \
}catch(boost::python::error_already_set const &){ \
LOG_ERROR(TAG, PyWrapper::parse_python_exception()); \
+ throw runtime_error("Python error"); \
} \
{
LOG_DEBUG(TAG, "load " + fname);
py::object func = m_module.attr("init");
- string ret;
+ bool ret = true;
CALL_WITH_EXCEPTION(func(fname.c_str()), ret);
- return true;
+ return ret;
}
void PredictorWrapper::dump()