mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 15:07:38 +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();
|
auto ep = inst->EndParam();
|
||||||
#else
|
#else
|
||||||
boost::optional<double> sp, ep;
|
boost::optional<double> sp, ep;
|
||||||
sp = inst->StartParam();
|
try {
|
||||||
ep = inst->EndParam();
|
sp = inst->StartParam();
|
||||||
|
ep = inst->EndParam();
|
||||||
|
} catch (const IfcParse::IfcException& e) {
|
||||||
|
Logger::Warning(e);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const double tol = settings_.get<settings::Precision>().get();
|
const double tol = settings_.get<settings::Precision>().get();
|
||||||
|
|||||||
Reference in New Issue
Block a user