Don't blow up on an empty core team list
Change-Id: Ie75315a95b6be6e4efd6106f40eff83e303ed936
This commit is contained in:
parent
7a56a3089f
commit
2d8b51d3a2
@ -168,7 +168,8 @@ def write_pretty(reviewer_data, file_obj, options, reviewers, projects,
|
|||||||
for project in projects])
|
for project in projects])
|
||||||
file_obj.write('Core team size: %d (avg %.1f reviews/day)\n' % (
|
file_obj.write('Core team size: %d (avg %.1f reviews/day)\n' % (
|
||||||
core_team_size,
|
core_team_size,
|
||||||
float(totals['core']) / options.days / core_team_size))
|
(float(totals['core']) / options.days / core_team_size) if
|
||||||
|
core_team_size else 0))
|
||||||
file_obj.write(
|
file_obj.write(
|
||||||
'New patch sets in the last %d days: %d (%.1f/day)\n'
|
'New patch sets in the last %d days: %d (%.1f/day)\n'
|
||||||
% (options.days, change_stats['patches'],
|
% (options.days, change_stats['patches'],
|
||||||
|
Loading…
Reference in New Issue
Block a user