Fix KeyError: 'title' in stage_runner.py
Some checks failed
Cross-Node Transaction Testing / transaction-test (push) Has been cancelled
Deploy to Testnet / deploy-testnet (push) Has been cancelled
Multi-Node Stress Testing / stress-test (push) Has been cancelled
Node Failover Simulation / failover-test (push) Has been cancelled

- 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
This commit is contained in:
aitbc1
2026-05-07 17:21:36 +02:00
parent f3b0d6f02d
commit c62c138d81

View File

@@ -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')