Skip to content
Snippets Groups Projects
Commit 9d165b7f authored by Mathieu Doucet's avatar Mathieu Doucet
Browse files

Specify exception we are handling

parent f8a5e0a5
No related branches found
No related tags found
No related merge requests found
......@@ -116,7 +116,7 @@ class LiquidsReflectometryReduction(PythonAlgorithm):
# The standard mode of operation is to give a run number as input
try:
data_file = FileFinder.findRuns("REF_L%s" % item)[0]
except:
except RuntimeError:
# Allow for a file name or file path as input
data_file = FileFinder.findRuns(item)[0]
file_list.append(data_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment