Permalink
Browse files

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...
1 parent 53e3f76 commit e27a7ef360af84f319b32007be369819044bd05c @malcolmt malcolmt committed Jul 13, 2007
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/defaultfilters.py
@@ -556,7 +556,7 @@ def pprint(value):
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)

0 comments on commit e27a7ef

Please sign in to comment.