Fix KeyError: use .get() for all optional result fields
This commit is contained in:
@@ -147,7 +147,7 @@ def process(project_path: Path, process_all: bool, export_only: bool):
|
|||||||
for name in results['updated_components']:
|
for name in results['updated_components']:
|
||||||
console.print(f" [yellow]~[/yellow] {name}")
|
console.print(f" [yellow]~[/yellow] {name}")
|
||||||
|
|
||||||
if results['errors']:
|
if results.get('errors'):
|
||||||
console.print("\n[bold red]Errors:[/bold red]")
|
console.print("\n[bold red]Errors:[/bold red]")
|
||||||
for err in results['errors']:
|
for err in results['errors']:
|
||||||
console.print(f" [red]X[/red] {err['video']}: {err['error']}")
|
console.print(f" [red]X[/red] {err['video']}: {err['error']}")
|
||||||
|
|||||||
Reference in New Issue
Block a user