Code

Changes between Version 36 and Version 37 of BetterErrorMessages


Ignore:
Timestamp:
09/16/11 16:18:14 (3 years ago)
Author:
jMyles
Comment:

AttributeError invoked by .render() can be clearer.

Legend:

Unmodified
Added
Removed
Modified
  • BetterErrorMessages

    v36 v37  
    118118'''Suggestion:''' Check type of HttpResponse before attempting to use (perhaps unPythonic?) or possibly give Http404 a clearer name like Http404Exception 
    119119 
     120== django.shortcuts == 
     121Invoking .render() with a <coconut> object instead of a HttpRequest as the first argument invokes AttributeError with the message: "'<coconut>' object has no attribute 'META'".  Better will be something like, "render() takes a request object for the first argument." 
     122 
    120123== django.template == 
    121124