Misc tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@13734 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2014-12-08 17:31:48 +00:00
parent 95810125bf
commit fcf9cf7bb1
3 changed files with 20 additions and 1 deletions

View File

@@ -49,7 +49,7 @@ class MailHandler < ActionMailer::Base
# Receives an email and rescues any exception
def self.safe_receive(*args)
receive(*args)
rescue => e
rescue Exception => e
logger.error "An unexpected error occurred when receiving email: #{e.message}" if logger
return false
end