Lean
Lean copied to clipboard
Report Generator KeyError Exception Due to Missing Color Mapping
Expected Behavior
The Report generator generated Exposure chart for all securities types.
Actual Behavior
KeyError when the portfolio contains Index Options on ReportCharts.py#L964:L967, since there is no IndexOption key in those dictionaries.
Potential Solution
N/A
Reproducing the Problem
Generate a report using the following file: 3428b32e4ada5889b13e82eeb8d65a66.json
Checklist
- [x] I have completely filled out this template
- [x] I have confirmed that this issue exists on the current
masterbranch - [x] I have confirmed that this is not a duplicate issue by searching issues
- [x] I have provided detailed steps to reproduce the issue