Modify ↓
#9214 closed defect (fixed)
KeyError at ticket[self.fields['worked']
| Reported by: | falkb | Owned by: | Chris Nelson |
|---|---|---|---|
| Priority: | normal | Component: | TracJsGanttPlugin |
| Severity: | normal | Keywords: | |
| Cc: | Ryan J Ollos | Trac Release: | 0.12 |
Description
seen with your downloaded latest version [10700]. Some of my tickets haven't the projected hours set yet. Then I got an error traceback with KeyError: u'totalhours'.
The patch to fix that is to apply at line 490:
if self.fields['worked']: - work = float(ticket[self.fields['worked']]) + if ticket.get(self.fields['worked']): + work = float(ticket[self.fields['worked']]) + else: + work = None else: work = None
Attachments (0)
Change History (4)
comment:1 Changed 14 years ago by
comment:3 Changed 14 years ago by
| Cc: | Ryan J Ollos added; anonymous removed |
|---|
comment:4 Changed 14 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.



(In [10701]) Handle missing time worked. Refs #9214.