From 66ad16519595ee17f2279acd3c3b98d4894f3db9 Mon Sep 17 00:00:00 2001 From: valosekj Date: Wed, 1 Nov 2023 19:51:58 -0400 Subject: [PATCH] Improve error message if list of files to correct is empty --- manual_correction.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manual_correction.py b/manual_correction.py index 034a687..4f71819 100644 --- a/manual_correction.py +++ b/manual_correction.py @@ -889,7 +889,8 @@ def main(): dict_yml = utils.track_corrections(files_dict=dict_yml.copy(), config_path=args.config, file_path=fname, task=task) else: - sys.exit("ERROR: The list of files is empty.") + sys.exit("ERROR: The list of files to correct is empty. \nMaybe, you have already corrected all the " + "files? Please, check the YAML file: {}".format(args.config)) if __name__ == '__main__':