Ticket #4842: defaultfilter_replace.diff
File defaultfilter_replace.diff, 520 bytes (added by , 17 years ago) |
---|
-
django/template/defaultfilters.py
556 556 try: 557 557 return pformat(value) 558 558 except Exception, e: 559 return u"Error in formatting:%s" % force_unicode(e )559 return u"Error in formatting:%s" % force_unicode(e, errors="replace") 560 560 561 561 # Syntax: register.filter(name of filter, callback) 562 562 register.filter(add)