Fix KeyError: use .get() for all optional result fields

This commit is contained in:
Mario Lavoie
2026-01-28 02:27:45 +00:00
parent fb2db882ba
commit 2c517addc5

View File

@@ -147,7 +147,7 @@ def process(project_path: Path, process_all: bool, export_only: bool):
for name in results['updated_components']:
console.print(f" [yellow]~[/yellow] {name}")
if results['errors']:
if results.get('errors'):
console.print("\n[bold red]Errors:[/bold red]")
for err in results['errors']:
console.print(f" [red]X[/red] {err['video']}: {err['error']}")