Skip to content
Browse files

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...
1 parent c46ddbf commit b30cba4e2bd764cd4f1ec5c0ae1664a078ce967b @jacobian jacobian committed
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 b30cba4

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