Skip to content

Commit d5978ad

Browse files
committed
remove this error handler to better debug the errors
1 parent ca8f660 commit d5978ad

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,15 +110,11 @@ def make_active(login)
110110
def commit_activity(repository)
111111
# get all commits after specified date and iterate
112112
info "...commits"
113-
begin
114-
@client.commits_since(repo, @date).each do |commit|
115-
# if commmitter is a member of the org and not active, make active
116-
if t = @members.find {|member| member[:login] == commit["author"]["login"] && member[:active] == false }
117-
make_active(t[:login])
118-
end
113+
@client.commits_since(repo, @date).each do |commit|
114+
# if commmitter is a member of the org and not active, make active
115+
if t = @members.find {|member| member[:login] == commit["author"]["login"] && member[:active] == false }
116+
make_active(t[:login])
119117
end
120-
rescue
121-
info "...skipping blank repo"
122118
end
123119
end
124120

0 commit comments

Comments
 (0)