mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	Tweaked [531] slightly, so that it checks for 'is None' instead of boolean 'not'
git-svn-id: http://code.djangoproject.com/svn/django/trunk@532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
		| @@ -64,7 +64,7 @@ class BaseHandler: | ||||
|             response = callback(request, **param_dict) | ||||
|  | ||||
|             # Complain if the view returned None (a common error). | ||||
|             if not response: | ||||
|             if response is None: | ||||
|                 raise ValueError, "The view %s.%s didn't return an HttpResponse object." % (callback.__module__, callback.func_name) | ||||
|  | ||||
|             return response | ||||
|   | ||||
		Reference in New Issue
	
	Block a user