Skip to content

Commit ebae4bc

Browse files
committed
Don't error if redirect limit reached
1 parent 6bcbb06 commit ebae4bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/ecosystem/cocoapods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def check_status(package)
4343

4444
response = connection.head(url)
4545
"removed" if [400, 404, 410].include?(response.status)
46-
rescue Faraday::Error => e
46+
rescue Faraday::Error, Faraday::FollowRedirects::RedirectLimitReached => e
4747
nil
4848
end
4949
end

0 commit comments

Comments
 (0)