lib/flexirest/connection.rb in flexirest-1.8.7 vs lib/flexirest/connection.rb in flexirest-1.8.8

- old
+ new

@@ -22,10 +22,10 @@ @session.headers end def make_safe_request(path, &block) block.call - rescue Faraday::Error::TimeoutError + rescue Faraday::TimeoutError raise Flexirest::TimeoutException.new("Timed out getting #{full_url(path)}") rescue Faraday::ConnectionFailed => e1 if e1.respond_to?(:cause) && e1.cause.is_a?(Net::OpenTimeout) raise Flexirest::TimeoutException.new("Timed out getting #{full_url(path)}") end