lib/spaceship/client.rb in spaceship-0.0.3 vs lib/spaceship/client.rb in spaceship-0.0.4
- old
+ new
@@ -364,10 +364,10 @@
def send_request(method, url_or_path, params, headers, &block)
tries ||= 5
return @client.send(method, url_or_path, params, headers, &block)
- rescue Faraday::TimeoutError => ex
+ rescue Faraday::Error::TimeoutError => ex # New Farday version: Faraday::TimeoutError => ex
unless (tries -= 1).zero?
sleep 3
retry
end