Code

Ticket #20752: fix_20752.diff

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

patch

Line 
1From 502271dab153f0f312062c160b0cc8384606b66f Mon Sep 17 00:00:00 2001
2From: Tal Shiri <tal@sookasa.com>
3Date: Mon, 15 Jul 2013 13:58:41 -0700
4Subject: [PATCH] made got_request_exception send the signal with
5 send_robust() instead of send(). Fixes #20752
6
7---
8 django/core/handlers/base.py | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/django/core/handlers/base.py b/django/core/handlers/base.py
12index 5911865..00c6ab1 100644
13--- a/django/core/handlers/base.py
14+++ b/django/core/handlers/base.py
15@@ -192,7 +192,7 @@ class BaseHandler(object):
16 
17         except: # Handle everything else.
18             # Get the exception info now, in case another exception is thrown later.
19-            signals.got_request_exception.send(sender=self.__class__, request=request)
20+            signals.got_request_exception.send_robust(sender=self.__class__, request=request)
21             response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
22 
23         try:
24--
251.7.11.1
26