[BUG]: Can't catch the exception in Python that raise in C++ using py::error_already_set() #5290
Open
3 tasks done
Labels
triage
New bug, unverified
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:
Reproducible example code
test_exception()
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: