From 3200cddee7355ab021861d26783e3b551a6c40c2 Mon Sep 17 00:00:00 2001 From: mrodrigues Date: Tue, 10 Mar 2015 21:13:40 -0300 Subject: [PATCH] Shouldn't throw exception when preview fetching timeouts --- app/services/link_thumbnailer_wrapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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