From e63fa8161a0fab6265ae2ce537bd268da0135c3f Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 15 Nov 2018 17:20:55 +0100 Subject: [PATCH] fix re-throwing an exception --- src/Mod/Fem/App/AppFemPy.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Mod/Fem/App/AppFemPy.cpp b/src/Mod/Fem/App/AppFemPy.cpp index e9dd68a939..3fd7f4482e 100644 --- a/src/Mod/Fem/App/AppFemPy.cpp +++ b/src/Mod/Fem/App/AppFemPy.cpp @@ -185,9 +185,9 @@ private: pcFeature->FemMesh.setValuePtr(mesh.release()); pcFeature->purgeTouched(); } - catch(Base::Exception& e) { + catch (Base::Exception&) { #ifdef FC_USE_VTK - if( FemPostPipeline::canRead(file) ) { + if (FemPostPipeline::canRead(file)) { FemPostPipeline *pcFeature = static_cast (pcDoc->addObject("Fem::FemPostPipeline", file.fileNamePure().c_str())); @@ -197,10 +197,11 @@ private: pcFeature->touch(); pcDoc->recomputeFeature(pcFeature); } - else - throw e; + else { + throw; + } #else - throw e; + throw; #endif }