Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #5109 -- Pass the request object to any exception signal handle…

…r. Thanks, Collin Anderson.

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


git-svn-id: http://code.djangoproject.com/svn/django/trunk@6292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 8d3d5a37b440c8b813d20d611ed957e997e94671 1 parent e461646
Malcolm Tredinnick authored September 15, 2007

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  django/core/handlers/base.py
2  django/core/handlers/base.py
@@ -116,7 +116,7 @@ def _real_get_response(self, request):
116 116
             else:
117 117
                 # Get the exception info now, in case another exception is thrown later.
118 118
                 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)
120 120
                 # When DEBUG is False, send an error message to the admins.
121 121
                 subject = 'Error (%s IP): %s' % ((request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'), request.path)
122 122
                 try:

0 notes on commit 8d3d5a3

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