Skip to content

Commit

Permalink
Tweaked [531] slightly, so that it checks for 'is None' instead of bo…
Browse files Browse the repository at this point in the history
…olean 'not'

git-svn-id: http://code.djangoproject.com/svn/django/trunk@532 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed Aug 18, 2005
1 parent 8a93922 commit 28d41fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/core/handlers/base.py
Expand Up @@ -64,7 +64,7 @@ def get_response(self, path, request):
response = callback(request, **param_dict) response = callback(request, **param_dict)


# Complain if the view returned None (a common error). # 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) raise ValueError, "The view %s.%s didn't return an HttpResponse object." % (callback.__module__, callback.func_name)


return response return response
Expand Down

0 comments on commit 28d41fe

Please sign in to comment.