From 1d7ab6fb463fbf2902dd1e5958714e18afe2e2db Mon Sep 17 00:00:00 2001 From: camea Date: Mon, 3 Jul 2023 18:08:25 +0200 Subject: [PATCH] frappy/get_all_param: catch error when object is missing --- tcl/startup/frappy.tcl | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tcl/startup/frappy.tcl b/tcl/startup/frappy.tcl index 9d9984a..d8cc670 100644 --- a/tcl/startup/frappy.tcl +++ b/tcl/startup/frappy.tcl @@ -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 } }