Try catch to keep the people happy #6176

This commit is contained in:
Thomas Krijnen
2025-02-23 15:50:31 +01:00
parent c30b5cbc08
commit 9289e1d0cc
+6 -2
View File
@@ -58,8 +58,12 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSweptDiskSolid* inst) {
auto ep = inst->EndParam();
#else
boost::optional<double> sp, ep;
sp = inst->StartParam();
ep = inst->EndParam();
try {
sp = inst->StartParam();
ep = inst->EndParam();
} catch (const IfcParse::IfcException& e) {
Logger::Warning(e);
}
#endif
const double tol = settings_.get<settings::Precision>().get();