Replies: 4 comments
|
@yurivict Do you have a minimal example? We can't replicate this and we even have testing to ensure the proper string is passed to Python when it is thrown: pybind11/tests/test_exceptions.py Line 10 in fcb5554 |
0 replies
|
I'm observing this on MacOS 12 on an M1 chip. Tried with both |
0 replies
|
A year ago, I did not have this problem, but I am also observing it now on my Intel-based MacOS system. |
0 replies
|
I'm also observing this on an M1 chip. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
When C++ code throws a std::runtime_error exception python catches it as
RuntimeErrorthat prints asCaught an unknown exception!The documentation says that a variety of STL exceptions is caught and converted to Python exceptions, but
std::runtime_errorisn't listed there.I have 2 questions:
(1) Why isn't
std::runtime_errorlisted as a handled exception type?(2) Why isn't
std::runtime_errorprocessed as an instance ofstd::exceptionproperly?All reactions