templatetag add_interval does not exit cleanly on error

Bug #1078259 reported by John-Magne Bredal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Network Administration Visualized
Fix Released
High
John-Magne Bredal

Bug Description

A templatetag should exit cleanly on any error. add_interval does not exit cleanly if input is None.

  File "/usr/lib/pymodules/python2.6/nav/django/templatetags/info.py", line 118, in add_interval
    return value + timedelta(seconds=interval)

TypeError: unsupported type for timedelta seconds component: NoneType

Changed in nav:
assignee: nobody → John-Magne Bredal (john-m-bredal)
milestone: none → 3.12.4
importance: Undecided → High
status: New → Fix Committed
Revision history for this message
John-Magne Bredal (john-m-bredal) wrote :
Changed in nav:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.