Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #11993: fixed the the `floatformat` filter on `NaN` values in P…

…ython 2.6.3. Thanks, kklimonda.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b30cba4e2bd764cd4f1ec5c0ae1664a078ce967b 1 parent c46ddbf
Jacob Kaplan-Moss authored October 12, 2009

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/template/defaultfilters.py
2  django/template/defaultfilters.py
@@ -162,7 +162,7 @@ def floatformat(text, arg=-1):
162 162
 
163 163
     try:
164 164
         m = int(d) - d
165  
-    except (OverflowError, InvalidOperation):
  165
+    except (ValueError, OverflowError, InvalidOperation):
166 166
         return input_val
167 167
 
168 168
     if not m and p < 0:

0 notes on commit b30cba4

Please sign in to comment.
Something went wrong with that request. Please try again.