From bf21d2412aff2f02acda602f6fa599c205886c04 Mon Sep 17 00:00:00 2001 From: ahmedk <karim.ahmed@xfel.eu> Date: Mon, 4 Apr 2022 14:26:24 +0200 Subject: [PATCH] add a comment on parsing file not found error. --- src/cal_tools/tools.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cal_tools/tools.py b/src/cal_tools/tools.py index 57253fea5..f8e316ccf 100644 --- a/src/cal_tools/tools.py +++ b/src/cal_tools/tools.py @@ -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: -- GitLab