Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.10.0
Problem description
When i use the below reproducible example code, I can't catch the exception IndexError in Python that raise in C++.
The log is:
before exception
Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
Reproducible example code
m.def("test_exception", []() {
std::cout << "before exception" << std::endl;
PyErr_SetString(PyExc_IndexError, "Here is an IndexError");
throw py::error_already_set();
std::cout << "after exception" << std::endl;
});
Is this a regression? Put the last known working version here if it is.
Not a regression
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.10.0
Problem description
When i use the below reproducible example code, I can't catch the exception
IndexErrorin Python that raise in C++.The log is:
Reproducible example code
test_exception()Is this a regression? Put the last known working version here if it is.
Not a regression