aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/quiet_opener.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quiet_opener.rb b/lib/quiet_opener.rb
index 16ea27b8e..f39aca82b 100644
--- a/lib/quiet_opener.rb
+++ b/lib/quiet_opener.rb
@@ -7,7 +7,7 @@ end
def quietly_try_to_open(url)
begin
result = open(url).read.strip
- rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET
+ rescue OpenURI::HTTPError, SocketError, Errno::ETIMEDOUT, Errno::ECONNREFUSED, Errno::EHOSTUNREACH, Errno::ECONNRESET, Timeout::Error
Rails.logger.warn("Unable to open third-party URL #{url}")
result = ""
end