issue #1700 replace PyExc_Exception
This commit is contained in:
@@ -79,7 +79,7 @@ PyObject* ViewProviderPythonFeaturePy::addProperty(PyObject *args)
|
||||
if (!prop) {
|
||||
std::stringstream str;
|
||||
str << "No property found of type '" << sType << "'" << std::ends;
|
||||
throw Py::Exception(PyExc_Exception,str.str());
|
||||
throw Py::Exception(Base::BaseExceptionFreeCADError,str.str());
|
||||
}
|
||||
|
||||
return Py::new_reference_to(this);
|
||||
|
||||
Reference in New Issue
Block a user