mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-26 22:00:33 +05:00
Merge branch 'fix_pybind11_warning' into 'master'
fix pybind11 exception binding warning See merge request ngsolve/netgen!661
This commit is contained in:
commit
5103dac8d4
@ -86,7 +86,7 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
||||
try {
|
||||
if(p) std::rethrow_exception(p);
|
||||
} catch (const Standard_Failure& e) {
|
||||
exc((string(e.DynamicType()->Name()) + ": " + e.GetMessageString()).c_str());
|
||||
py::set_error(PyExc_RuntimeError, (string(e.DynamicType()->Name()) + ": " + e.GetMessageString()).c_str());
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user