fix: refuse a --bios-dir that does not exist

This commit is contained in:
Abdessamad Derraz committed 2026-10-18 08:39:27 +02:00
1 parent 4240c98359
commit b23f5b04ad
7 files changed
+57 -1

No files matched your search

+2
View File
@@ -29,6 +29,7 @@ from pathlib import Path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from common import (
require_directory,
list_registered_platforms,
load_database,
load_platform_config,
@@ -429,6 +430,7 @@ def main() -> None:
"--create-issues", action="store_true", help="Output GitHub Issue bodies"
)
args = parser.parse_args()
require_directory(args.bios_dir)
if not os.path.exists(args.db):
print(f"Error: {args.db} not found. Run generate_db.py first.", file=sys.stderr)