Add HTTParty::RedirectionTooDeep exception handler

This commit is contained in:
Dave Machado 2017-09-14 14:08:15 -04:00 committed by GitHub
parent 3c0edc4054
commit 60b4f1ca24

View file

@ -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