lib/onebox/engine/standard_embed.rb in onebox-1.5.11 vs lib/onebox/engine/standard_embed.rb in onebox-1.5.12

- old
+ new

@@ -41,12 +41,13 @@ private def fetch_oembed_raw(oembed_url) return unless oembed_url + oembed_url = oembed_url['href'] unless oembed_url['href'].nil? @raw = Onebox::Helpers.symbolize_keys(::MultiJson.load(Onebox::Helpers.fetch_response(oembed_url).body)) - # rescue Errno::ECONNREFUSED, Net::HTTPError, MultiJson::LoadError - # @raw = nil + rescue Errno::ECONNREFUSED, Net::HTTPError, MultiJson::LoadError + @raw = nil end def parse_open_graph(html, og_url) og = Struct.new(:url, :type, :title, :description, :images, :metadata, :html).new og.url = og_url