Skip to content

Commit ea13c6b

Browse files
committed
Fix pybind11 deprecations
1 parent 906b0ba commit ea13c6b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ros_msg_typecasters.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ bool convertible(const pybind11::handle& h, const char* ros_msg_name)
6666
void throwDeserializationError()
6767
{
6868
py::object e = py::module::import("genpy").attr("DeserializationError")();
69-
PyErr_SetObject(e.get_type().ptr(), e.ptr());
69+
PyErr_SetObject(py::type::of(e).ptr(), e.ptr());
7070
throw py::error_already_set();
7171
}
7272
} // namespace py_binding_tools

0 commit comments

Comments
 (0)