Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[1.1.X] Fixed #11993: fixed the the floatformat filter on NaN values …

…in Python 2.6.3. Thanks, kklimonda. Backport if [11619] from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@11620 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 66939c28b97928952d00fa907bb132c931181c48 1 parent 68ac924
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 66939c2

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