Skip to content

Commit

Permalink
Fix warning with pybind11 2.12 (#1389)
Browse files Browse the repository at this point in the history
Signed-off-by: Steve Peters <[email protected]>
  • Loading branch information
scpeters committed Apr 19, 2024
1 parent 2246db8 commit b5475ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/src/sdf/_gz_sdformat_pybind11.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ PYBIND11_MODULE(BINDINGS_MODULE_NAME, m) {
sdfErrorsException.attr("errors") = pybind11::cast(e.Errors());
// This has to be called last since it's the call that sets
// PyErr_SetString.
#if PYBIND11_VERSION_HEX >= 0x020C0000
pybind11::set_error(sdfErrorsException, e.what());
#else
sdfErrorsException(e.what());
#endif
}
});

Expand Down

0 comments on commit b5475ab

Please sign in to comment.