From 8c0c85ae9c579db58cae9d9328cd53764b752bf5 Mon Sep 17 00:00:00 2001 From: allegroai <> Date: Mon, 18 Jan 2021 11:33:04 +0200 Subject: [PATCH] Fix clearml-task error when script cannot be found --- clearml/backend_interface/task/populate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clearml/backend_interface/task/populate.py b/clearml/backend_interface/task/populate.py index 142dca73..460a1682 100644 --- a/clearml/backend_interface/task/populate.py +++ b/clearml/backend_interface/task/populate.py @@ -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)")