mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-10 15:46:48 +02:00
Add HTTParty::RedirectionTooDeep exception handler
This commit is contained in:
parent
3c0edc4054
commit
60b4f1ca24
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue