mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +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 {
|
||||
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