lib/http_utilities/http/mechanize/client.rb in http_utilities-1.3.6 vs lib/http_utilities/http/mechanize/client.rb in http_utilities-1.3.7
- old
+ new
@@ -55,10 +55,10 @@
reset_agent(options)
retries -= 1
retry
end
- rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, Errno::ECONNRESET, Timeout::Error, Net::HTTPUnauthorized, Net::HTTPForbidden, StandardError => connection_error
+ rescue Errno::ECONNREFUSED, Errno::ETIMEDOUT, Errno::ECONNRESET, Timeout::Error, Net::HTTPUnauthorized, Net::HTTPForbidden => connection_error
log(:error, "[HttpUtilities::Http::Mechanize::Client] - Error occurred. Error class: #{connection_error.class.name}. Message: #{connection_error.message}")
if retries > 0
reset_agent(options)
retries -= 1