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
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:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user