Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
public-apis
Commits
60b4f1ca
Commit
60b4f1ca
authored
Sep 14, 2017
by
Dave Machado
Committed by
GitHub
Sep 14, 2017
Browse files
Add HTTParty::RedirectionTooDeep exception handler
parent
3c0edc40
Changes
1
Hide whitespace changes
Inline
Side-by-side
build/validate_links.rb
View file @
60b4f1ca
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment