From 8743f59b565b7b6828a9b30e8b3d3f5b60e4ea2b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 29 Aug 2023 21:31:27 +0200 Subject: [PATCH] fix for HK level parsing --- tmtcc.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tmtcc.py b/tmtcc.py index c032291..1e82245 100755 --- a/tmtcc.py +++ b/tmtcc.py @@ -165,7 +165,10 @@ def setup_params() -> (SetupWrapper, int): post_arg_parsing_wrapper.set_params_with_prompts(proc_param_wrapper) else: post_arg_parsing_wrapper.set_params_without_prompts(proc_param_wrapper) - hk_level = int(post_arg_parsing_wrapper.args_raw.hk) + if hasattr(post_arg_parsing_wrapper.args_raw, "hk"): + hk_level = int(post_arg_parsing_wrapper.args_raw.hk) + else: + hk_level = 0 params.apid = PUS_APID if params.com_if is None: raise ValueError("could not determine a COM interface.")