Skip to content

Commit

Permalink
Merge pull request #302 from tejaswini-gambhire/fix_in_score_commit
Browse files Browse the repository at this point in the history
Fix in score commit
  • Loading branch information
prasadsurase authored Jul 25, 2017
2 parents 3d39172 + 671b48d commit 534c4ff
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/models/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,12 @@ def score_commits(round = nil)
if commit.message =~ PULL_REQ_MERGE_REGX
commit.set(auto_score: 0)
else
commit.set(auto_score: engine.calculate_score(commit))
begin
Sidekiq.logger.info "Scoring for commit: #{commit.id}, Round: #{round.from_date}"
commit.set(auto_score: engine.calculate_score(commit))
rescue StandardError => e
Sidekiq.logger.info "Commit: #{commit.id}, Error: #{e}"
end
end
end

Expand Down

0 comments on commit 534c4ff

Please sign in to comment.