about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorabcang <abcang1015@gmail.com>2017-06-29 20:04:07 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-29 13:04:07 +0200
commitb342c81c17cc8cf4af2ac3b1c57f4f250e0fefc1 (patch)
tree699da69aef377c29fd66a1bc0a40955ab771a4fd /app/services
parentead14f5bf0ae43524f055320f373a6e2ce947476 (diff)
rescue HTTP::ConnectionError (#3992)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/fetch_atom_service.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/services/fetch_atom_service.rb b/app/services/fetch_atom_service.rb
index 8f42db0aa..d430b22e9 100644
--- a/app/services/fetch_atom_service.rb
+++ b/app/services/fetch_atom_service.rb
@@ -20,6 +20,10 @@ class FetchAtomService < BaseService
     process_html(fetch(url))
   rescue OpenSSL::SSL::SSLError => e
     Rails.logger.debug "SSL error: #{e}"
+    nil
+  rescue HTTP::ConnectionError => e
+    Rails.logger.debug "HTTP ConnectionError: #{e}"
+    nil
   end
 
   private