Skip to content

Commit

Permalink
Improve error message if list of files to correct is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
valosekj committed Nov 1, 2023
1 parent 96d4ec6 commit 66ad165
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manual_correction.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__':
Expand Down

0 comments on commit 66ad165

Please sign in to comment.