fix: refuse a missing platforms directory

This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:25:20 +01:00
1 parent 6445e5d7d6
commit 27991c84ba
8 files changed
+58 -2

No files matched your search

+1 -1
View File
@@ -508,7 +508,7 @@ def list_registered_platforms(
"""
registry_path = os.path.join(platforms_dir, "_registry.yml")
if not os.path.exists(registry_path):
raise FileNotFoundError(f"no platform registry at {registry_path}")
raise InputMissing(f"no platform registry at {registry_path}")
with open(registry_path) as f:
registry = yaml_load(f) or {}
platforms = []