mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Try sending mails and fail gracefully if unsuccessful
This commit is contained in:
@@ -156,7 +156,10 @@ def update_application(request, applicationid):
|
||||
subject = render_to_string('hr/emails/%s_subject.txt' % message_type, { 'app': app })
|
||||
subject = ''.join(subject.splitlines())
|
||||
message = render_to_string('hr/emails/%s.txt' % message_type, { 'app': app })
|
||||
#send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [application.user.email])
|
||||
try:
|
||||
send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, [application.user.email])
|
||||
except:
|
||||
pass
|
||||
|
||||
if len(application.user.redditaccount_set.all()) > 0:
|
||||
from reddit.api import Inbox
|
||||
|
||||
Reference in New Issue
Block a user