KeyError: 'type' is generated on the reports page if no types exist
|Reported by:||ngpitt@…||Owned by:||rjollos|
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"]:
Change History (9)
comment:1 Changed 19 months ago by rjollos
- Owner changed from obs to rjollos
- Status changed from new to assigned
comment:5 Changed 19 months ago by rjollos
- Resolution set to fixed
- Status changed from assigned to closed