Ticket #1084 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

Burndown page breaks when no milestones

Reported by: andrew.hill@openads.org Assigned to: sambloomquist
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

Change History

02/27/07 16:32:37 changed by sambloomquist

  • status changed from new to closed.
  • resolution set to fixed.

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

02/27/07 16:33:23 changed by sambloomquist

fix will come out with version 01.06.10 of burndown plugin.


Add/Change #1084 (Burndown page breaks when no milestones)




Change Properties
Action