From ac8ec0ad374bafb10d58fa2fd7631ce40ea6d1df Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Fri, 23 Feb 2024 11:58:44 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20skip=20if=20no=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- commands/retro.py | 4 ++++ 1 file changed, 4 insertions(+) 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()