mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Try catch to keep the people happy #6176
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user