diff --git a/commands/retro.py b/commands/retro.py index 059561a..74fa8ab 100644 --- a/commands/retro.py +++ b/commands/retro.py @@ -49,6 +49,10 @@ for console in path.iterdir(): # get rom ref for id, metadata in metadatas.items(): + # skip if no name + if "name" not in metadata: + continue + rom_name = rom.name.split("(")[0].strip().lower() meta_name = metadata["name"].split("(")[0].strip().lower()