Fix clearml-task error when script cannot be found

This commit is contained in:
allegroai 2021-01-18 11:33:04 +02:00
parent c8350a0438
commit 8c0c85ae9c

View File

@ -72,7 +72,7 @@ class CreateAndPopulate(object):
if not script:
raise ValueError("Entry point script not provided")
if not repo and not folder and not Path(script).is_file():
raise ValueError("Repository or script must be provided")
raise ValueError("Script file \'{}\' could not be found".format(script))
if raise_on_missing_entries and commit and branch:
raise ValueError(
"Specify either a branch/tag or specific commit id, not both (either --commit or --branch)")