magic-removal: Fixed #1384: Don't return when sending email fails, just skip to the next address.
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2443 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
a3aa545250
commit
a86b6287de
|
@ -47,8 +47,7 @@ def send_mass_mail(datatuple, fail_silently=False):
|
|||
server.sendmail(from_email, recipient_list, msg.as_string())
|
||||
num_sent += 1
|
||||
except:
|
||||
if fail_silently:
|
||||
return
|
||||
if not fail_silently:
|
||||
raise
|
||||
try:
|
||||
server.quit()
|
||||
|
|
Loading…
Reference in New Issue