From 9289e1d0cc21f540b843127eaff765b9e84ff3e9 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 23 Feb 2025 15:50:31 +0100 Subject: [PATCH] Try catch to keep the people happy #6176 --- src/ifcgeom/mapping/IfcSweptDiskSolid.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ifcgeom/mapping/IfcSweptDiskSolid.cpp b/src/ifcgeom/mapping/IfcSweptDiskSolid.cpp index 1eec8c6bc7..bd779fd6cd 100644 --- a/src/ifcgeom/mapping/IfcSweptDiskSolid.cpp +++ b/src/ifcgeom/mapping/IfcSweptDiskSolid.cpp @@ -58,8 +58,12 @@ taxonomy::ptr mapping::map_impl(const IfcSchema::IfcSweptDiskSolid* inst) { auto ep = inst->EndParam(); #else boost::optional 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().get();