fix for HK level parsing

This commit is contained in:
Robin Müller 2023-08-29 21:31:27 +02:00
parent 2cc4a18c1e
commit 8743f59b56
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -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.")