Closed
Description
I have a module that may fail to initialize due to missing dependencies. So I do
BOOST_PYTHON_MODULE(mymodule)
{
...
if (missing_dependency) {
throw std::exception("Missing dependency");
}
...
}
The exception is correctly caught and PyErr_SetString(PyExc_RuntimeError, x.what())
is called, but python reports
import mymodule
SystemError: initialization of mymodule raised unreported exception
Why unreported exception
? My platform is Windows 10/Python 3.7.4 x64/MSVC 2017 if that matters. python_boost version is 1.69.0.
Metadata
Metadata
Assignees
Labels
No labels