Author: jacob
Date: 2009-10-12 11:53:23 -0500 (Mon, 12 Oct 2009)
New Revision: 11619

Modified:
   django/trunk/django/template/defaultfilters.py
Log:
Fixed #11993: fixed the the `floatformat` filter on `NaN` values in Python 
2.6.3. Thanks, kklimonda.

Modified: django/trunk/django/template/defaultfilters.py
===================================================================
--- django/trunk/django/template/defaultfilters.py      2009-10-12 15:32:24 UTC 
(rev 11618)
+++ django/trunk/django/template/defaultfilters.py      2009-10-12 16:53:23 UTC 
(rev 11619)
@@ -162,7 +162,7 @@
 
     try:
         m = int(d) - d
-    except (OverflowError, InvalidOperation):
+    except (ValueError, OverflowError, InvalidOperation):
         return input_val
 
     if not m and p < 0:


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to