From 7a5d2b774aaa984482be06f2872558a3cabd35d0 Mon Sep 17 00:00:00 2001 From: Wojciech Pietrzak Date: Wed, 20 Nov 2013 17:54:28 +0100 Subject: [PATCH] rescue OpenURI::HTTPError during port check too In restrictive environments you're not allowed to open some urls. You will face this exception, which now will be rescued. --- lib/vegas/runner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vegas/runner.rb b/lib/vegas/runner.rb index 71c002c..3a0c72c 100644 --- a/lib/vegas/runner.rb +++ b/lib/vegas/runner.rb @@ -145,7 +145,7 @@ def port_open?(check_url = nil) check_url ||= url options[:no_proxy] ? open(check_url, :proxy => nil) : open(check_url) false - rescue Errno::ECONNREFUSED, Errno::EPERM, Errno::ETIMEDOUT + rescue Errno::ECONNREFUSED, Errno::EPERM, Errno::ETIMEDOUT, OpenURI::HTTPError true end end