diff --git a/src/App/Application.cpp b/src/App/Application.cpp index fe2b62ebf2..b658d196b9 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -3702,24 +3702,23 @@ void Application::getVerboseCommonInfo(QTextStream& str, const std::map(version); + str << "IfcOpenShell " << ver_str.c_str() << ", "; } - Py_DECREF(ifcopenshellVer); + else { + Base::Console().log("Module 'ifcopenshell' not found (safe to ignore, unless using " + "the BIM workbench and IFC).\n"); + } + } + catch (const Py::Exception&) { + Base::PyGILStateLocker lock; + Base::PyException e; + Base::Console().log("%s\n", e.what()); } #if defined(HAVE_OCC_VERSION)