+ in setPyObject() only use classes derived from Base::Exception

This commit is contained in:
wmayer
2013-07-05 15:29:04 +02:00
parent e811e09545
commit 6fde5d764b
14 changed files with 196 additions and 64 deletions

View File

@@ -99,7 +99,7 @@ void PropertyPointKernel::setPyObject(PyObject *value)
else {
std::string error = std::string("type must be 'Points', not ");
error += value->ob_type->tp_name;
throw Py::TypeError(error);
throw Base::TypeError(error);
}
}