mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-13 22:50:33 +05:00
Merge branch 'raise_len_error_not_ngs' into 'master'
Raise len error not ngs See merge request ngsolve/netgen!659
This commit is contained in:
commit
0fb5b416ba
@ -25,7 +25,7 @@ DLL_HEADER void ExportNgOCCBasic(py::module &m)
|
||||
.def(py::init([] (py::tuple pnt)
|
||||
{
|
||||
if (py::len(pnt) != 3)
|
||||
throw Exception("need 3-tuple to create gp_Pnt");
|
||||
throw std::length_error("need 3-tuple to create gp_Pnt");
|
||||
|
||||
return gp_Pnt(py::cast<double>(pnt[0]),
|
||||
py::cast<double>(pnt[1]),
|
||||
|
Loading…
Reference in New Issue
Block a user