Skip to content

Commit

Permalink
Shouldn't throw exception when preview fetching timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
oddlyfunctional committed Mar 11, 2015
1 parent c9c3d6b commit 3200cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/services/link_thumbnailer_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3200cdd

Please sign in to comment.