#
# Bug-Ubuntu: https://bugs.launchpad.net/bugs/445639
# Bug: http://code.djangoproject.com/ticket/11993
# Origin: http://code.djangoproject.com/changeset/11620
# Description: In Python 2.6.3 the way incorrect Decimal numbers are handled
#  was changed slightly (http://bugs.python.org/issue6795). Django was
#  relying on the previous behaviour and so had to be fixed.
#
Index: /django/branches/releases/1.1.X/django/template/defaultfilters.py
===================================================================
--- a/django/template/defaultfilters.py (revision 10543)
+++ b/django/template/defaultfilters.py (revision 11620)
@@ -163,5 +163,5 @@
     try:
         m = int(d) - d
-    except (OverflowError, InvalidOperation):
+    except (ValueError, OverflowError, InvalidOperation):
         return input_val
 
