diff --git a/tools/owners.py b/tools/owners.py index c432ea0581..c4c4d192f6 100644 --- a/tools/owners.py +++ b/tools/owners.py @@ -683,8 +683,9 @@ def main(argv=sys.argv): for field in ('count', 'newest', 'oldest'): output[owner][field] = projects[project][owner][field] - # Append preferred addresses to the PTL electoral rolls - electorate.append(owners[owner]['preferred'] + '\n') + # Append preferred member addresses to the PTL electoral rolls + if 'member' in owners[owner]: + electorate.append(owners[owner]['preferred'] + '\n') # Write out a team-specific YAML file fd = open(os.path.join(outdir, '%s.yaml' % normalized_project), 'w')