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:
parent
53e3f76d6e
commit
e27a7ef360
|
@ -556,7 +556,7 @@ def pprint(value):
|
||||||
try:
|
try:
|
||||||
return pformat(value)
|
return pformat(value)
|
||||||
except Exception, e:
|
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)
|
# Syntax: register.filter(name of filter, callback)
|
||||||
register.filter(add)
|
register.filter(add)
|
||||||
|
|
Loading…
Reference in New Issue