🐛 skip if no name
All checks were successful
dl / lint (push) Successful in 1m8s
dl / docker (push) Successful in 42s

This commit is contained in:
Michel Roux 2024-02-23 11:58:44 +01:00
parent 559acb8196
commit ac8ec0ad37

View File

@ -49,6 +49,10 @@ for console in path.iterdir():
# get rom ref # get rom ref
for id, metadata in metadatas.items(): for id, metadata in metadatas.items():
# skip if no name
if "name" not in metadata:
continue
rom_name = rom.name.split("(")[0].strip().lower() rom_name = rom.name.split("(")[0].strip().lower()
meta_name = metadata["name"].split("(")[0].strip().lower() meta_name = metadata["name"].split("(")[0].strip().lower()