diff --git a/app/services/link_thumbnailer_wrapper.rb b/app/services/link_thumbnailer_wrapper.rb index db5d540b..f64889e2 100644 --- a/app/services/link_thumbnailer_wrapper.rb +++ b/app/services/link_thumbnailer_wrapper.rb @@ -9,7 +9,7 @@ def generate LinkThumbnailer.generate(url) rescue ArgumentError Hashie::Mash.new(title: url, images: [src: url]) - rescue SocketError + rescue SocketError, Net::HTTP::Persistent::Error Hashie::Mash.new(title: url, images: []) end