Py: replace BaseExceptionFreeCADError with more suitable exception types
This commit is contained in:
@@ -64,7 +64,8 @@ void ViewProviderLinkPy::setUseCenterballDragger(Py::Boolean arg) {
|
||||
try {
|
||||
getViewProviderLinkPtr()->enableCenterballDragger(arg);
|
||||
}catch(const Base::Exception &e){
|
||||
throw Py::Exception(Base::BaseExceptionFreeCADError,e.what());
|
||||
e.setPyException();
|
||||
throw Py::Exception();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user