frappy/get_all_param: catch error when object is missing
This commit is contained in:
@ -266,9 +266,12 @@ proc frappy_async_client {} {
|
||||
|
||||
proc get_all_param {args} {
|
||||
foreach obj $args {
|
||||
set hp [get_obj_path $obj]
|
||||
hnotify $hp 1
|
||||
get_param_values $hp
|
||||
catch {
|
||||
set hp [get_obj_path $obj]
|
||||
hnotify $hp 1
|
||||
get_param_values $hp
|
||||
}
|
||||
# todo: create error message on failure
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user