KeyError: 'type' is generated on the reports page if no types exist
|Reported by:||Owned by:||Ryan J Ollos|
blackmagic.py line 153 assumes that the key
types exists in dict
data["fields"]. This is not the case if no types are specified in the given trac environment.
This is easily reproducible by clicking "Custom Query" under "View Tickets" when no types have been configured.
This error can be fixed by prefacing the for loop on line 153 with:
if "type" in data["fields"]: