Ticket #20752: fix_20752.diff

File fix_20752.diff, 999 bytes (added by tal@…, 20 months ago)

patch

  • django/core/handlers/base.py

    From 502271dab153f0f312062c160b0cc8384606b66f Mon Sep 17 00:00:00 2001
    From: Tal Shiri <tal@sookasa.com>
    Date: Mon, 15 Jul 2013 13:58:41 -0700
    Subject: [PATCH] made got_request_exception send the signal with
     send_robust() instead of send(). Fixes #20752
    
    ---
     django/core/handlers/base.py | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
    index 5911865..00c6ab1 100644
    a b class BaseHandler(object): 
    192192
    193193        except: # Handle everything else.
    194194            # Get the exception info now, in case another exception is thrown later.
    195             signals.got_request_exception.send(sender=self.__class__, request=request)
     195            signals.got_request_exception.send_robust(sender=self.__class__, request=request)
    196196            response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
    197197
    198198        try:
Back to Top