lib/locomotive/coal/resources/concerns/request.rb in locomotivecms_coal-1.7.0 vs lib/locomotive/coal/resources/concerns/request.rb in locomotivecms_coal-1.8.0.alpha1

- old
+ new

@@ -23,10 +23,10 @@ max_count = 5 response = begin # Just uncomment following line if you want to trace protocol between wagon & engine live # puts "#{parameters}" _do_request(action, "#{uri.path}/#{endpoint}.json", parameters) - rescue ::Timeout::Error, ::Errno::ETIMEDOUT, Faraday::Error::TimeoutError => e + rescue ::Timeout::Error, ::Errno::ETIMEDOUT, Faraday::TimeoutError => e if max_count > 0 puts "\n Warning => timeout detected, attempts left: #{max_count}\n\n" max_count -= 1 retry else