You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: Can't catch the exception in Python that raise in C++ using py::error_already_set() #5290
The reported snippet was compiled against current master, and the IndexError is now caught correctly in Python. The report used 2.10.0; #4298 fixed the cross-DSO exception visibility problem, and that fix is in v2.10.1 and later.
If you can still reproduce this with current master (v3), please comment and we can reopen.
Activity
henryiii commentedon Jul 25, 2026
🤖 AI text below 🤖
The reported snippet was compiled against current master, and the
IndexErroris now caught correctly in Python. The report used 2.10.0; #4298 fixed the cross-DSO exception visibility problem, and that fix is in v2.10.1 and later.If you can still reproduce this with current master (v3), please comment and we can reopen.