mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Add HTTParty::RedirectionTooDeep exception handler
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user