Django

Code

Changeset 532

Show
Ignore:
Timestamp:
08/17/05 19:15:39 (3 years ago)
Author:
adrian
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/django/core/handlers/base.py

    r531 r532  
    6565 
    6666            # Complain if the view returned None (a common error). 
    67             if not response: 
     67            if response is None: 
    6868                raise ValueError, "The view %s.%s didn't return an HttpResponse object." % (callback.__module__, callback.func_name) 
    6969