Author: adrian
Date: 2006-05-26 12:30:40 -0500 (Fri, 26 May 2006)
New Revision: 2990

Modified:
   django/trunk/django/core/handlers/base.py
Log:
Fixed #1023 -- Base handler no longer calls mail_admins() on SystemExit, in 
case of forked processes called from views. Thanks, Hugo

Modified: django/trunk/django/core/handlers/base.py
===================================================================
--- django/trunk/django/core/handlers/base.py   2006-05-26 16:30:42 UTC (rev 
2989)
+++ django/trunk/django/core/handlers/base.py   2006-05-26 17:30:40 UTC (rev 
2990)
@@ -95,6 +95,8 @@
                 return callback(request, **param_dict)
         except exceptions.PermissionDenied:
             return http.HttpResponseForbidden('<h1>Permission denied</h1>')
+        except SystemExit:
+            pass # See http://code.djangoproject.com/ticket/1023
         except: # Handle everything else, including SuspiciousOperation, etc.
             if settings.DEBUG:
                 return self.get_technical_error_response(request)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-updates@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates
-~----------~----~----~----~------~----~------~--~---

Reply via email to