mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 21:30:35 +05:00
fix pybind11 exception binding warning
This commit is contained in:
parent
d9247d094b
commit
c7800704b0
@ -86,7 +86,7 @@ DLL_HEADER void ExportNgOCC(py::module &m)
|
|||||||
try {
|
try {
|
||||||
if(p) std::rethrow_exception(p);
|
if(p) std::rethrow_exception(p);
|
||||||
} catch (const Standard_Failure& e) {
|
} 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