We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 906b0ba commit ea13c6bCopy full SHA for ea13c6b
1 file changed
src/ros_msg_typecasters.cpp
@@ -66,7 +66,7 @@ bool convertible(const pybind11::handle& h, const char* ros_msg_name)
66
void throwDeserializationError()
67
{
68
py::object e = py::module::import("genpy").attr("DeserializationError")();
69
- PyErr_SetObject(e.get_type().ptr(), e.ptr());
+ PyErr_SetObject(py::type::of(e).ptr(), e.ptr());
70
throw py::error_already_set();
71
}
72
} // namespace py_binding_tools
0 commit comments