diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-08-23 17:49:01 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-08-23 17:49:01 +0100 |
commit | 5ea4882f38bcf18016c82c1e6119c4df5237e96e (patch) | |
tree | a393c38b8b4273eee7f4a693c6f4c7a7bd55266f /lib | |
parent | db8bb7fa5440855420b8f3ce24611a766e52f89e (diff) | |
parent | a311a1892507aacec5bfb2837dd10f5257dfb42c (diff) |
Merge remote-tracking branch 'origin/release/0.6.4' into wdtk
Conflicts:
app/views/request/show.rhtml
spec/models/info_request_spec.rb
Diffstat (limited to 'lib')
-rw-r--r-- | lib/quiet_opener.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/quiet_opener.rb b/lib/quiet_opener.rb index 8cedad250..bde645d0b 100644 --- a/lib/quiet_opener.rb +++ b/lib/quiet_opener.rb @@ -5,7 +5,7 @@ require 'net/http/local' def quietly_try_to_open(url) begin result = open(url).read.strip - rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH + rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET Rails.logger.warn("Unable to open third-party URL #{url}") result = "" end @@ -24,7 +24,7 @@ def quietly_try_to_purge(host, url) result_body = response.body } end - rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH + rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET Rails.logger.warn("PURGE: Unable to reach host #{host}") end if result == "200" |