Opened 9 years ago

Closed 9 years ago

#6030 closed (fixed)

floatformat filter fails if it receives an invalid type

Reported by: Chris Beaven Owned by: nobody
Component: Template system Version: master
Severity: Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

For example, floatformat(None) raises a TypeError.

Simple fix attached.

Attachments (1)

floatformat.diff (849 bytes) - added by Chris Beaven 9 years ago.

Download all attachments as: .zip

Change History (3)

Changed 9 years ago by Chris Beaven

Attachment: floatformat.diff added

comment:1 Changed 9 years ago by Chris Beaven

Triage Stage: UnreviewedReady for checkin

comment:2 Changed 9 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [6752]) Fixed #6030 -- More robust error handling for the "float" filter. Thanks,
SmileyChris.

Note: See TracTickets for help on using tickets.
Back to Top