mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Fixed #6030 -- More robust error handling for the "float" filter. Thanks,
SmileyChris. git-svn-id: http://code.djangoproject.com/svn/django/trunk@6752 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -91,7 +91,7 @@ def floatformat(text, arg=-1): | ||||
|     """ | ||||
|     try: | ||||
|         f = float(text) | ||||
|     except ValueError: | ||||
|     except (ValueError, TypeError): | ||||
|         return u'' | ||||
|     try: | ||||
|         d = int(arg) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user