mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-21 03:09:08 -05:00
fix: stop when a profile does not parse
generate_db wrote a database without the aliases of a profile it could not read, and the MAME and FBNeo refreshes passed without it. Each now names the file and exits non-zero.
This commit is contained in:
1 parent
9a417dde2a
commit
89ac31780b
5 files changed
+79
-7
No files matched your search
@@ -216,8 +216,10 @@ def _find_mame_profiles() -> list[Path]:
|
||||
and source.rstrip("/") in _MAME_TREES
|
||||
):
|
||||
profiles.append(path)
|
||||
except (yaml.YAMLError, OSError):
|
||||
continue
|
||||
except (yaml.YAMLError, OSError) as exc:
|
||||
# Skipped, a broken mame.yml left the list and the refresh
|
||||
# reported success without touching it.
|
||||
raise RuntimeError(f"cannot read {path}: {exc}") from exc
|
||||
return profiles
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user