Modify

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#1084 closed defect (fixed)

Burndown page breaks when no milestones

Reported by: andrew.hill@… 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)

Change History (2)

comment:1 Changed 17 years ago by Sam Bloomquist

Resolution: fixed
Status: newclosed

(In [2054]) fixes #1084 - put in a check for null (None) before the problem line of code.

comment:2 Changed 17 years ago by Sam Bloomquist

fix will come out with version 01.06.10 of burndown plugin.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Sam Bloomquist.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.