Django

Code

Show
Ignore:
Timestamp:
08/22/08 08:59:41 (3 months ago)
Author:
russellm
Message:

Fixed #8136: Added a signal emission when an error is raised handling an error. This was required for the test client to handle missing 404.html templates and errors in the 404.html template. Thanks to danfairs for the report and fix.

Files:

Legend:

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

    r8223 r8464  
    113113                    return callback(request, **param_dict) 
    114114                except: 
    115                     return self.handle_uncaught_exception(request, resolver, sys.exc_info()) 
     115                    try: 
     116                        return self.handle_uncaught_exception(request, resolver, sys.exc_info()) 
     117                    finally: 
     118                        receivers = signals.got_request_exception.send(sender=self.__class__, request=request) 
    116119        except exceptions.PermissionDenied: 
    117120            return http.HttpResponseForbidden('<h1>Permission denied</h1>')