Skip to content

Commit

Permalink
Merge pull request #237 from github/handle-unhandled-error
Browse files Browse the repository at this point in the history
Update find_inactive_members.rb
  • Loading branch information
azizshamim authored Apr 3, 2019
2 parents f10f6db + 222478b commit e9c2177
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/ruby/find-inactive-members/find_inactive_members.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def commit_activity(repo)
end
rescue Octokit::Conflict
info "...no commits"
rescue Octokit::NotFound
#API responds with a 404 (instead of an empty set) when the `commits_since` range is out of bounds of commits.
info "...no commits"
end
end

Expand Down Expand Up @@ -263,4 +266,4 @@ def member_activity

options[:client] = Octokit::Client.new

InactiveMemberSearch.new(options)
InactiveMemberSearch.new(options)

0 comments on commit e9c2177

Please sign in to comment.