Test: [skip ci] add unit tests for PR #6907

This commit is contained in:
wmayer
2022-05-24 14:17:44 +02:00
parent 42f7be2a4a
commit fc9e19aafb
3 changed files with 31 additions and 1 deletions

View File

@@ -1007,7 +1007,7 @@ PyObject* Application::sActivateWorkbenchHandler(PyObject * /*self*/, PyObject *
catch (const Base::Exception& e) {
std::stringstream err;
err << psKey << ": " << e.what();
PyErr_SetString(Base::PyExc_FC_GeneralError, err.str().c_str());
PyErr_SetString(e.getPyExceptionType(), err.str().c_str());
return nullptr;
}
catch (const XERCES_CPP_NAMESPACE_QUALIFIER TranscodingException& e) {