Modify ↓
#1084 closed defect (fixed)
Burndown page breaks when no milestones
Reported by: | Owned by: | Sam Bloomquist | |
---|---|---|---|
Priority: | normal | Component: | ScrumBurndownPlugin |
Severity: | normal | Keywords: | |
Cc: | Trac Release: | 0.10 |
Description
When there are no milestones in trac, the burndown page does not display a graceful "there are no milestones" page, but instead breaks:
Traceback (most recent call last): File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 387, in dispatch_request dispatcher.dispatch(req) File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 237, in dispatch resp = chosen_handler.process_request(req) File "/usr/lib/python2.3/site-packages/TracBurndown-0.1-py2.3.egg/burndown/burndown.py", line 122, in process_request selected_milestone = req.args.get('selected_milestone', milestones[0]) IndexError: list index out of range
Attachments (0)
Note: See
TracTickets for help on using
tickets.
(In [2054]) fixes #1084 - put in a check for null (None) before the problem line of code.