From c62c138d81de87738b50d0e36dcd8b8940e0c88a Mon Sep 17 00:00:00 2001 From: aitbc1 Date: Thu, 7 May 2026 17:21:36 +0200 Subject: [PATCH] Fix KeyError: 'title' in stage_runner.py - Use .get() with default value instead of direct dictionary access - Default title: 'Stage {stage_number}' - Fixes Stage 10 and other JSON stages without 'title' field - Tested: Stage 10 now loads successfully --- aitbc/training_setup/stage_runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aitbc/training_setup/stage_runner.py b/aitbc/training_setup/stage_runner.py index 14522032..c50c1273 100644 --- a/aitbc/training_setup/stage_runner.py +++ b/aitbc/training_setup/stage_runner.py @@ -83,7 +83,7 @@ class StageRunner: return StageDefinition( stage=data['stage'], - title=data['title'], + title=data.get('title', f"Stage {data['stage']}"), commands=commands, expected=expected, prerequisites=data.get('prerequisites')