Fix KeyError when running remotely and no params were passed to click (https://github.com/allegroai/clearml-agent/issues/111)

This commit is contained in:
allegroai 2022-07-07 23:46:44 +03:00
parent e3547cd897
commit b24ed1937c
2 changed files with 2 additions and 1 deletions

View File

@ -148,6 +148,8 @@ class PatchClick:
}
params = PatchClick.__remote_task_params
if not params:
return None
command = [
p.name for p in params['Args'].values()
if p.type == PatchClick._command_type and cast_str_to_bool(p.value, strip=True)]

View File

@ -20,4 +20,3 @@ def get_filename_max_length(dir_path):
print(err)
return 255 # Common filesystems like NTFS, EXT4 and HFS+ limited with 255