mirror of
https://github.com/clearml/clearml-agent
synced 2025-03-03 18:52:22 +00:00
Protect against None in execution.repository
This commit is contained in:
parent
a2db1f5ab5
commit
ae3d034531
@ -591,7 +591,7 @@ def clone_repository_cached(session, execution, destination):
|
|||||||
# mock lock
|
# mock lock
|
||||||
repo_lock = Lock()
|
repo_lock = Lock()
|
||||||
repo_lock_timeout_sec = 300
|
repo_lock_timeout_sec = 300
|
||||||
repo_url = execution.repository # type: str
|
repo_url = execution.repository or '' # type: str
|
||||||
parsed_url = furl(repo_url)
|
parsed_url = furl(repo_url)
|
||||||
no_password_url = parsed_url.copy().remove(password=True).url
|
no_password_url = parsed_url.copy().remove(password=True).url
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user