mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user