mirror of
https://github.com/clearml/clearml
synced 2025-06-09 16:15:44 +00:00
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:
parent
e3547cd897
commit
b24ed1937c
@ -148,6 +148,8 @@ class PatchClick:
|
|||||||
}
|
}
|
||||||
|
|
||||||
params = PatchClick.__remote_task_params
|
params = PatchClick.__remote_task_params
|
||||||
|
if not params:
|
||||||
|
return None
|
||||||
command = [
|
command = [
|
||||||
p.name for p in params['Args'].values()
|
p.name for p in params['Args'].values()
|
||||||
if p.type == PatchClick._command_type and cast_str_to_bool(p.value, strip=True)]
|
if p.type == PatchClick._command_type and cast_str_to_bool(p.value, strip=True)]
|
||||||
|
@ -20,4 +20,3 @@ def get_filename_max_length(dir_path):
|
|||||||
print(err)
|
print(err)
|
||||||
|
|
||||||
return 255 # Common filesystems like NTFS, EXT4 and HFS+ limited with 255
|
return 255 # Common filesystems like NTFS, EXT4 and HFS+ limited with 255
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user