From e10cd5103f1634214c93f5aeb817776c52b28ebc Mon Sep 17 00:00:00 2001
From: Joseph Ramsay <joseph.ramsay@stfc.ac.uk>
Date: Mon, 27 Nov 2017 16:19:28 +0000
Subject: [PATCH] Re #21252 Added default if no suffix is set

---
 scripts/Diffraction/isis_powder/routines/run_details.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/Diffraction/isis_powder/routines/run_details.py b/scripts/Diffraction/isis_powder/routines/run_details.py
index 6891f89311f..c8cdd7c99e8 100644
--- a/scripts/Diffraction/isis_powder/routines/run_details.py
+++ b/scripts/Diffraction/isis_powder/routines/run_details.py
@@ -60,7 +60,7 @@ def create_run_details_object(run_number_string, inst_settings, is_vanadium_run,
         file_extension = file_extension if file_extension.startswith('.') else '.' + file_extension
 
     # Get the output name suffix if set
-    suffix = getattr(inst_settings, "suffix")
+    suffix = getattr(inst_settings, "suffix", None)
 
     # Sample empty if there is one as this is instrument specific
     sample_empty = getattr(inst_settings, "sample_empty", None)
-- 
GitLab