diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 6aadbf2381..6779b9b5f2 100644 --- a/django/template/defaultfilters.py +++ b/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)