From 60b4f1ca240a125654ecd87ac57a014559f3fa5e Mon Sep 17 00:00:00 2001 From: Dave Machado Date: Thu, 14 Sep 2017 14:08:15 -0400 Subject: [PATCH] Add HTTParty::RedirectionTooDeep exception handler --- build/validate_links.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/validate_links.rb b/build/validate_links.rb index 6aa4c569..d236e7c5 100755 --- a/build/validate_links.rb +++ b/build/validate_links.rb @@ -50,6 +50,8 @@ links.each do |link| if !allowed_codes.include?(res.code) fails.push("(#{res.code}): #{link}") end + rescue HTTParty::RedirectionTooDeep + fails.push("(RTD): #{link}") rescue Net::ReadTimeout fails.push("(TMO): #{link}") rescue Net::OpenTimeout