Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e27a7ef360af84f319b32007be369819044bd05c 1 parent 53e3f76
@malcolmt malcolmt authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/template/defaultfilters.py
View
2  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)
Please sign in to comment.
Something went wrong with that request. Please try again.