From b547145865dead87b650c255ba8710e578e95bef Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 25 Feb 2010 19:09:28 +0000 Subject: [PATCH] Ignore exceptions when sending email to confirm changes of email address. Closes #2744. --- app/controllers/user_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/user_controller.rb b/app/controllers/user_controller.rb index 02cabb010..829d918c8 100644 --- a/app/controllers/user_controller.rb +++ b/app/controllers/user_controller.rb @@ -67,7 +67,12 @@ class UserController < ApplicationController flash.now[:notice] = t 'user.account.flash update success' else flash.now[:notice] = t 'user.account.flash update success confirm needed' - Notifier.deliver_email_confirm(@user, @user.tokens.create) + + begin + Notifier.deliver_email_confirm(@user, @user.tokens.create) + rescue + # Ignore errors sending email + end end end else -- 2.43.2