Author: mtredinnick
Date: 2007-07-13 05:56:30 -0500 (Fri, 13 Jul 2007)
New Revision: 5682

Modified:
   django/trunk/django/template/defaultfilters.py
Log:
Fixed #4842 -- Added slightly more robust error reporting. Thanks, Thomas
G?\195?\188ttler.


Modified: django/trunk/django/template/defaultfilters.py
===================================================================
--- django/trunk/django/template/defaultfilters.py      2007-07-13 09:14:51 UTC 
(rev 5681)
+++ django/trunk/django/template/defaultfilters.py      2007-07-13 10:56:30 UTC 
(rev 5682)
@@ -556,7 +556,7 @@
     try:
         return pformat(value)
     except Exception, e:
-        return u"Error in formatting:%s" % force_unicode(e)
+        return u"Error in formatting: %s" % force_unicode(e, errors="replace")
 
 # Syntax: register.filter(name of filter, callback)
 register.filter(add)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to