fix for HK level parsing
This commit is contained in:
parent
2cc4a18c1e
commit
8743f59b56
5
tmtcc.py
5
tmtcc.py
@ -165,7 +165,10 @@ def setup_params() -> (SetupWrapper, int):
|
|||||||
post_arg_parsing_wrapper.set_params_with_prompts(proc_param_wrapper)
|
post_arg_parsing_wrapper.set_params_with_prompts(proc_param_wrapper)
|
||||||
else:
|
else:
|
||||||
post_arg_parsing_wrapper.set_params_without_prompts(proc_param_wrapper)
|
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
|
params.apid = PUS_APID
|
||||||
if params.com_if is None:
|
if params.com_if is None:
|
||||||
raise ValueError("could not determine a COM interface.")
|
raise ValueError("could not determine a COM interface.")
|
||||||
|
Loading…
Reference in New Issue
Block a user