Django

Code

Changeset 6292

Show
Ignore:
Timestamp:
09/15/07 11:34:41 (10 months ago)
Author:
mtredinnick
Message:

Fixed #5109 -- Pass the request object to any exception signal handler. Thanks, Collin Anderson.

This is fully backwards compatible, despite the addition of an extra argument.

Files:

Legend:

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

    r6221 r6292  
    117117                # Get the exception info now, in case another exception is thrown later. 
    118118                exc_info = sys.exc_info() 
    119                 receivers = dispatcher.send(signal=signals.got_request_exception
     119                receivers = dispatcher.send(signal=signals.got_request_exception, request=request
    120120                # When DEBUG is False, send an error message to the admins. 
    121121                subject = 'Error (%s IP): %s' % ((request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'), request.path)