be1035a6d4f7b15029ef3d6d76c0f7a3a6e52026.diff

Alex Shulgin, 2012-12-06 23:51

Download (958 Bytes)

View differences:

extra/mail_handler/rdm-mailhandler.rb
101 101
                           'no_account_notice' => no_account_notice }
102 102
    issue_attributes.each { |attr, value| data["issue[#{attr}]"] = value }
103 103

  
104
    debug "Posting to #{uri}..."
105
    response = Net::HTTPS.post_form(URI.parse(uri), data, headers, :no_check_certificate => no_check_certificate)
106
    debug "Response received: #{response.code}"
104
    begin
105
      debug "Posting to #{uri}..."
106
      response = Net::HTTPS.post_form(URI.parse(uri), data, headers, :no_check_certificate => no_check_certificate)
107
      debug "Response received: #{response.code}"
108
    rescue SystemCallError # connection refused, etc.
109
      return 75 # temporary failure
110
    end
107 111

  
108 112
    case response.code.to_i
109 113
      when 403