From f263a6a476dccc0aba7b15b202345853019b3b45 Mon Sep 17 00:00:00 2001
From: Pete Peterson <petersonpf@ornl.gov>
Date: Thu, 25 Mar 2021 10:26:38 -0400
Subject: [PATCH] Changing what exceptions are caught and rethrown

---
 Framework/PythonInterface/mantid/simpleapi.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Framework/PythonInterface/mantid/simpleapi.py b/Framework/PythonInterface/mantid/simpleapi.py
index 6635e5b52ce..f5d48817d31 100644
--- a/Framework/PythonInterface/mantid/simpleapi.py
+++ b/Framework/PythonInterface/mantid/simpleapi.py
@@ -935,7 +935,7 @@ def set_properties(alg_object, *args, **kwargs):
                 alg_object.setPropertyValue(key, new_value.name())
             else:
                 alg_object.setProperty(key, new_value)
-        except RuntimeError as e:
+        except (RuntimeError, TypeError, ValueError) as e:
             msg = 'Problem setting "{}" in {}-v{}: {}'.format(name, alg_object.name(), alg_object.version(),
                                                               str(e))
             raise e.__class__(msg) from e
-- 
GitLab