#11944: filesizeformat should catch ValueError
---------------------------+------------------------------------------------
 Reporter:  rfk            |       Owner:  nobody    
   Status:  new            |   Milestone:            
Component:  Uncategorized  |     Version:  SVN       
 Keywords:                 |       Stage:  Unreviewed
Has_patch:  1              |  
---------------------------+------------------------------------------------
 The "filesizeformat" template tag fails gracefully if input conversion
 raises a TypeError, but not in other common cases such as ValueError. The
 attached patch copies the safeguards found in the "floatformat" tag to
 handle a wider range of error conditions.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11944>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to