From 28d41fe2701a6d6912b655b86cf2a461d81e7ae9 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Thu, 18 Aug 2005 00:15:39 +0000 Subject: [PATCH] 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 --- django/core/handlers/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index a97a327053968..63137c74a2911 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -64,7 +64,7 @@ def get_response(self, path, request): 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