]> cat aescling's git repositories - mastodon.git/commitdiff
rescue HTTP::ConnectionError (#3992)
authorabcang <abcang1015@gmail.com>
Thu, 29 Jun 2017 11:04:07 +0000 (20:04 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 29 Jun 2017 11:04:07 +0000 (13:04 +0200)
app/services/fetch_atom_service.rb

index 8f42db0aaa41e5a0f750f56518b1a0dbfa7cba1a..d430b22e93f00c21d845d773a3fd3a3616147f2c 100644 (file)
@@ -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