lib/bundler/mirror.rb in bundler-1.16.5 vs lib/bundler/mirror.rb in bundler-1.16.6

- old
+ new

@@ -150,11 +150,11 @@ MirrorSockets.new(mirror).any? do |socket, address, timeout| begin socket.connect_nonblock(address) rescue Errno::EINPROGRESS wait_for_writtable_socket(socket, address, timeout) - rescue # Connection failed somehow, again + rescue RuntimeError # Connection failed somehow, again false end end end @@ -170,10 +170,10 @@ def probe_writtable_socket(socket, address) socket.connect_nonblock(address) rescue Errno::EISCONN true - rescue # Connection failed + rescue StandardError # Connection failed false end end end