From 83f6a22a75482b6e70606ca359206c239eb4603b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Tue, 11 Apr 2023 22:08:05 +0200 Subject: [PATCH] bugfixes --- eive_tmtc/tmtc/obj_prompt.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eive_tmtc/tmtc/obj_prompt.py b/eive_tmtc/tmtc/obj_prompt.py index 5091e9a..69ee1f5 100644 --- a/eive_tmtc/tmtc/obj_prompt.py +++ b/eive_tmtc/tmtc/obj_prompt.py @@ -50,10 +50,10 @@ def get_obj_if_from_dict(lut: dict) -> bytes: for k, v in lut.items(): print(f"{k}: {v[0]}") obj_key = int(input("Please specify target object by key: ")) - acs_obj = lut[obj_key] - if acs_obj is None: + name_and_obj_id = lut[obj_key] + if name_and_obj_id is None: raise ValueError("invalid key") - return lut[1] + return name_and_obj_id[1] def prompt_object() -> bytes: