From 2b6b87f4e8ee953cae2e6e8da34d821759429763 Mon Sep 17 00:00:00 2001
From: Matthew Andrew <matthew.andrew@stfc.ac.uk>
Date: Mon, 3 Dec 2018 11:49:22 +0000
Subject: [PATCH] Applied clang format Re #23767

---
 .../api/src/PythonAlgorithm/AlgorithmAdapter.cpp  | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/Framework/PythonInterface/mantid/api/src/PythonAlgorithm/AlgorithmAdapter.cpp b/Framework/PythonInterface/mantid/api/src/PythonAlgorithm/AlgorithmAdapter.cpp
index 7de81e6418f..1c52f09899d 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)
 //-----------------------------------------------------------------------------------------------------------------------------
-- 
GitLab