bugfixes
This commit is contained in:
parent
00281fdc5e
commit
83f6a22a75
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user