Skip to content
Snippets Groups Projects
Commit bf21d241 authored by Karim Ahmed's avatar Karim Ahmed
Browse files

add a comment on parsing file not found error.

parent c6b4a499
No related branches found
No related tags found
1 merge request!630Fix/get dir creation date
......@@ -358,6 +358,8 @@ def get_dir_creation_date(directory: Union[str, Path], run: int,
proposal = int(directory.parent.name[1:])
directory = directory / 'r{:04d}'.format(run)
# Validate the availability of the input folder.
# And show a clear error message, if it was not found.
try:
dc = RunDirectory(directory)
except FileNotFoundError as e:
......
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