Skip to content

Commit e9c2177

Browse files
authored
Merge pull request #237 from github/handle-unhandled-error
Update find_inactive_members.rb
2 parents f10f6db + 222478b commit e9c2177

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/ruby/find-inactive-members/find_inactive_members.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def commit_activity(repo)
127127
end
128128
rescue Octokit::Conflict
129129
info "...no commits"
130+
rescue Octokit::NotFound
131+
#API responds with a 404 (instead of an empty set) when the `commits_since` range is out of bounds of commits.
132+
info "...no commits"
130133
end
131134
end
132135

@@ -263,4 +266,4 @@ def member_activity
263266

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

266-
InactiveMemberSearch.new(options)
269+
InactiveMemberSearch.new(options)

0 commit comments

Comments
 (0)