Lean icon indicating copy to clipboard operation
Lean copied to clipboard

Report Generator KeyError Exception Due to Missing Color Mapping

Open AlexCatarino opened this issue 3 years ago • 0 comments

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 master branch
  • [x] I have confirmed that this is not a duplicate issue by searching issues
  • [x] I have provided detailed steps to reproduce the issue

AlexCatarino avatar Aug 08 '22 19:08 AlexCatarino