diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-15 16:34:41 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2007-09-15 16:34:41 +0000 |
| commit | 8d3d5a37b440c8b813d20d611ed957e997e94671 (patch) | |
| tree | ddde2c955fb0a9d0c6630bf223efa50e80a545a0 | |
| parent | e461646b94d79cc72f76979a60b86ec83900ae6e (diff) | |
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.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@6292 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/core/handlers/base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py index 50495b4ff3..5f52460ec0 100644 --- a/django/core/handlers/base.py +++ b/django/core/handlers/base.py @@ -116,7 +116,7 @@ class BaseHandler(object): else: # Get the exception info now, in case another exception is thrown later. exc_info = sys.exc_info() - receivers = dispatcher.send(signal=signals.got_request_exception) + receivers = dispatcher.send(signal=signals.got_request_exception, request=request) # When DEBUG is False, send an error message to the admins. subject = 'Error (%s IP): %s' % ((request.META.get('REMOTE_ADDR') in settings.INTERNAL_IPS and 'internal' or 'EXTERNAL'), request.path) try: |
