diff --git a/library/utils/gameinfo_parser.py b/library/utils/gameinfo_parser.py index 76124ecb..c62513c6 100644 --- a/library/utils/gameinfo_parser.py +++ b/library/utils/gameinfo_parser.py @@ -84,7 +84,10 @@ def all_paths(self) -> List[Path]: path = f"{self.root.as_posix()}/{path.replace('|gameinfo_path|', '')}" if path.endswith('*'): path = path[:-1] - for sub_path in (self.root / path).iterdir(): + sub_mod = (self.root / path) + if not sub_mod.exists(): + continue + for sub_path in sub_mod.iterdir(): paths.append(sub_path) else: paths.append(Path(path))