#9383: skip mail_admins/mail_managers if ADMINS or MANAGERS is empty
-----------------------------------+----------------------------------------
 Reporter:  adunar                 |       Owner:  nobody    
   Status:  new                    |   Milestone:  post-1.0  
Component:  HTTP handling          |     Version:  1.0       
 Keywords:  500 error mail_admins  |       Stage:  Unreviewed
Has_patch:  1                      |  
-----------------------------------+----------------------------------------
 As discussed on http://groups.google.com/group/django-
 developers/browse_thread/thread/5c27ac4703da33a9, when DEBUG = False,
 internal server errors will always cause mail_admins to be called (unless
 overridden in a custom handler class), and the current implementation of
 mail_admins always opens a connection to the SMTP server even if the email
 has no recipients (i.e., ADMINS=[]).

 This patch makes mail_admins and mail_managers a no-op if there are no
 recipients. It also avoids constructing the internal server error email if
 it has no recipients.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/9383>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to