mirror of
https://github.com/clearml/clearml
synced 2025-03-03 18:52:12 +00:00
Fix clearml-task error when script cannot be found
This commit is contained in:
parent
c8350a0438
commit
8c0c85ae9c
@ -72,7 +72,7 @@ class CreateAndPopulate(object):
|
|||||||
if not script:
|
if not script:
|
||||||
raise ValueError("Entry point script not provided")
|
raise ValueError("Entry point script not provided")
|
||||||
if not repo and not folder and not Path(script).is_file():
|
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:
|
if raise_on_missing_entries and commit and branch:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
"Specify either a branch/tag or specific commit id, not both (either --commit or --branch)")
|
"Specify either a branch/tag or specific commit id, not both (either --commit or --branch)")
|
||||||
|
Loading…
Reference in New Issue
Block a user