Skip to content
Browse files

Tweaked [531] slightly, so that it checks for 'is None' instead of bo…

…olean 'not'

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 8a93922 commit 28d41fe2701a6d6912b655b86cf2a461d81e7ae9 @adrianholovaty adrianholovaty committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 django/core/handlers/
2 django/core/handlers/
@@ -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

0 comments on commit 28d41fe

Please sign in to comment.
Something went wrong with that request. Please try again.