From c20c374dc66e4d8a7183dce373b6699f3ee6fad1 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Thu, 25 Jun 2015 12:02:24 -0300 Subject: [PATCH] Do not fail when email isn't received --- app/models/task.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/task.rb b/app/models/task.rb index dd6616d..fa0566d 100644 --- a/app/models/task.rb +++ b/app/models/task.rb @@ -72,7 +72,7 @@ class Task < ActiveRecord::Base if target_msg && task.target && !task.target.notification_emails.empty? TaskMailer.target_notification(task, target_msg).deliver end - rescue NotImplementedError => ex + rescue Exception => ex Rails.logger.info ex.to_s end end -- libgit2 0.21.2