This commit is contained in:
Robin Müller 2023-04-11 22:08:05 +02:00
parent 00281fdc5e
commit 83f6a22a75
No known key found for this signature in database
GPG Key ID: 71B58F8A3CDFA9AC

View File

@ -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: