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

Güttler.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5682 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-07-13 10:56:30 +00:00
parent 53e3f76d6e
commit e27a7ef360
1 changed files with 1 additions and 1 deletions

View File

@ -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)