Commit d6b87cb0 authored by Marian Triebe's avatar Marian Triebe

Fix compile of libcaf_python

parent d011b9e8
......@@ -482,13 +482,13 @@ pybind11::tuple tuple_from_message(const type_erased_tuple& msg) {
if (str_ptr == nullptr) {
set_py_exception("Unable to extract element #", i, " from message: ",
"could not get portable name of ", rtti.second->name());
return {};
return pybind11::tuple{};
}
auto kvp = bindings.find(*str_ptr);
if (kvp == bindings.end()) {
set_py_exception(R"(Unable to add element of type ")",
*str_ptr, R"(" to message: type is unknown to CAF)");
return {};
return pybind11::tuple{};
}
auto obj = kvp->second->to_object(msg, i);
PyTuple_SetItem(result.ptr(), static_cast<int>(i), obj.release().ptr());
......@@ -575,7 +575,7 @@ CAF_MODULE_INIT_RES caf_module_init() {
}
} // namespace <anonymous>
} // namespace <anonymous>
} // namespace python
} // namespace caf
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment