diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-07 07:37:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-02-07 07:37:21 +0000 |
commit | d1ad182192afe16eecf78361aa2bc0c8de3b0663 (patch) | |
tree | 790a4e3ef800770e6edece002387188d5eb244a7 /extra/mail_handler/rdm-mailhandler.rb | |
parent | d347fd4d39ff7617e26b676505de16a552cb2cdd (diff) | |
download | redmine-d1ad182192afe16eecf78361aa2bc0c8de3b0663.tar.gz redmine-d1ad182192afe16eecf78361aa2bc0c8de3b0663.zip |
rdm-mailhandler.rb should catch EOFError (#18922).
Patch by Go MAEDA.
git-svn-id: http://svn.redmine.org/redmine/trunk@13961 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'extra/mail_handler/rdm-mailhandler.rb')
-rw-r--r-- | extra/mail_handler/rdm-mailhandler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/extra/mail_handler/rdm-mailhandler.rb b/extra/mail_handler/rdm-mailhandler.rb index c55aed21f..36d06cb56 100644 --- a/extra/mail_handler/rdm-mailhandler.rb +++ b/extra/mail_handler/rdm-mailhandler.rb @@ -129,7 +129,7 @@ class RedmineMailHandler debug "Posting to #{uri}..." begin response = Net::HTTPS.post_form(URI.parse(uri), data, headers, :no_check_certificate => no_check_certificate) - rescue SystemCallError => e # connection refused, etc. + rescue SystemCallError, IOError => e # connection refused, etc. warn "An error occured while contacting your Redmine server: #{e.message}" return 75 # temporary failure end |