Browse files

[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...
1 parent 68ac924 commit 66939c28b97928952d00fa907bb132c931181c48 @jacobian jacobian committed Oct 12, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/defaultfilters.py
View
2 django/template/defaultfilters.py
@@ -162,7 +162,7 @@ def floatformat(text, arg=-1):
try:
m = int(d) - d
- except (OverflowError, InvalidOperation):
+ except (ValueError, OverflowError, InvalidOperation):
return input_val
if not m and p < 0:

0 comments on commit 66939c2

Please sign in to comment.