1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Fixed #11993: fixed the the floatformat filter on NaN values in Python 2.6.3. Thanks, kklimonda.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@11619 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jacob Kaplan-Moss 2009-10-12 16:53:23 +00:00
parent c46ddbf1fc
commit b30cba4e2b

View File

@ -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: