diff --git a/Framework/PythonInterface/mantid/api/src/PythonAlgorithm/AlgorithmAdapter.cpp b/Framework/PythonInterface/mantid/api/src/PythonAlgorithm/AlgorithmAdapter.cpp index 7de81e6418f887856017d75ba781e48e9a5d9954..1c52f09899d822b31a3cb64c8f702c5efd7cd2ff 100644 --- a/Framework/PythonInterface/mantid/api/src/PythonAlgorithm/AlgorithmAdapter.cpp +++ b/Framework/PythonInterface/mantid/api/src/PythonAlgorithm/AlgorithmAdapter.cpp @@ -334,15 +334,16 @@ template <typename BaseAlgorithm> void AlgorithmAdapter<BaseAlgorithm>::init() { * overridden in the subclass by a function named PyExec */ template <typename BaseAlgorithm> void AlgorithmAdapter<BaseAlgorithm>::exec() { - try { - callMethod<void>(getSelf(), "PyExec"); - } catch (Mantid::PythonInterface::PythonException&) { - if (BaseAlgorithm::getCancel()) throw Mantid::API::Algorithm::CancelException(); - else throw; - } + try { + callMethod<void>(getSelf(), "PyExec"); + } catch (Mantid::PythonInterface::PythonException &) { + if (BaseAlgorithm::getCancel()) + throw Mantid::API::Algorithm::CancelException(); + else + throw; + } } - //----------------------------------------------------------------------------------------------------------------------------- // Concete instantiations (avoids definitions being all in the headers) //-----------------------------------------------------------------------------------------------------------------------------