Mesure: Ignore ValueError exceptions in quick measure

This commit is contained in:
wmayer
2024-05-14 23:08:02 +02:00
committed by Adrián Insaurralde Avalos
parent 387a6da814
commit 792cee1801

View File

@@ -66,6 +66,10 @@ void QuickMeasure::onSelectionChanged(const Gui::SelectionChanges& msg)
// ignore this exception because it can be caused by trying to access a non-existing
// sub-element e.g. when selecting a construction geometry in sketcher
}
catch (const Base::ValueError&) {
// ignore this exception because it can be caused by trying to access a non-existing
// sub-element e.g. when selecting a constraint in sketcher
}
catch (const Base::Exception& e) {
e.ReportException();
}