diff options
author | abcang <abcang1015@gmail.com> | 2017-07-03 18:03:34 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-03 11:03:34 +0200 |
commit | a6d02cff368d96178b0843ef021232d2187abbcd (patch) | |
tree | fda8ab9795543b9b5e4cf562ad02a8454242f7c6 /app/services | |
parent | be94f9e35d4fbb1558fa772a618276562039fd96 (diff) |
Rescue exceptions caused by FetchLinkCardService (#4045)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/fetch_link_card_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/fetch_link_card_service.rb b/app/services/fetch_link_card_service.rb index c2df7b2f0..4ce221267 100644 --- a/app/services/fetch_link_card_service.rb +++ b/app/services/fetch_link_card_service.rb @@ -18,6 +18,8 @@ class FetchLinkCardService < BaseService return if res.code != 200 || res.mime_type != 'text/html' attempt_opengraph(card, url) unless attempt_oembed(card, url) + rescue HTTP::ConnectionError, OpenSSL::SSL::SSLError + nil end private |