[Part] Coverity: dtors can't throw

This commit is contained in:
Chris Hennes
2021-02-09 11:48:59 -06:00
committed by wwmayer
parent 1e2f8e366f
commit 46a899c437
4 changed files with 35 additions and 7 deletions

View File

@@ -393,7 +393,13 @@ TaskCheckGeometryResults::TaskCheckGeometryResults(QWidget *parent) : QWidget(pa
TaskCheckGeometryResults::~TaskCheckGeometryResults()
{
Gui::Selection().clearSelection();
try {
Gui::Selection().clearSelection();
}
catch (const Py::Exception&) {
Base::PyException e; // extract the Python error text
e.ReportException();
}
}
void TaskCheckGeometryResults::setupInterface()