Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4842 -- Added slightly more robust error reporting. Thanks, Th…

…omas

Güttler.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit e27a7ef360af84f319b32007be369819044bd05c 1 parent 53e3f76
Malcolm Tredinnick authored July 13, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/template/defaultfilters.py
2  django/template/defaultfilters.py
@@ -556,7 +556,7 @@ def pprint(value):
556 556
     try:
557 557
         return pformat(value)
558 558
     except Exception, e:
559  
-        return u"Error in formatting:%s" % force_unicode(e)
  559
+        return u"Error in formatting: %s" % force_unicode(e, errors="replace")
560 560
 
561 561
 # Syntax: register.filter(name of filter, callback)
562 562
 register.filter(add)

0 notes on commit e27a7ef

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