Add HTTParty::RedirectionTooDeep exception handler
This commit is contained in:
1 parent
3c0edc4054
commit
60b4f1ca24
1 file changed
+2
@@ -50,6 +50,8 @@ links.each do |link|
|
|||||||
if !allowed_codes.include?(res.code)
|
if !allowed_codes.include?(res.code)
|
||||||
fails.push("(#{res.code}): #{link}")
|
fails.push("(#{res.code}): #{link}")
|
||||||
end
|
end
|
||||||
|
rescue HTTParty::RedirectionTooDeep
|
||||||
|
fails.push("(RTD): #{link}")
|
||||||
rescue Net::ReadTimeout
|
rescue Net::ReadTimeout
|
||||||
fails.push("(TMO): #{link}")
|
fails.push("(TMO): #{link}")
|
||||||
rescue Net::OpenTimeout
|
rescue Net::OpenTimeout
|
||||||
|
|||||||
Reference in new issue
Block a user