Skip to content
Browse files

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



git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 53e3f76 commit e27a7ef360af84f319b32007be369819044bd05c @malcolmt malcolmt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/template/
2 django/template/
@@ -556,7 +556,7 @@ def pprint(value):
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)

0 comments on commit e27a7ef

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