Skip to content

Commit

Permalink
Throw error if no calibration file exists. Refs #9616.
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Jun 10, 2014
1 parent 0b43f39 commit e5be710
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Code/Mantid/scripts/SANS/isis_reduction_steps.py
Expand Up @@ -2525,7 +2525,9 @@ def _read_calibfile_line(self, arguments, reducer):
__calibrationWs = Load(file_path, OutputWorkspace=suggested_name)
reducer.instrument.setCalibrationWorkspace(__calibrationWs)
except:
return "Invalid input for tube calibration file. Path = "+path2file+".\nReason=" + traceback.format_exc()
# If we throw a runtime here, then we cannot execute 'Load Data'.
raise RuntimeError("Invalid input for tube calibration file (" + path2file + " ).\n" \
"Please do not run a reduction as it will not successfully complete.\n")

def _read_maskfile_line(self, line, reducer):
try:
Expand Down

0 comments on commit e5be710

Please sign in to comment.