fix default liaison information

Fix the handling for cases where no liaison is specified so that the
dict used as a default value contains the keys expected in the
formatting in the following print statement.

Change-Id: I80e2266101ef1a66e0781d3eb8b7d9cf854d6124
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann
2018-11-21 15:20:52 -05:00
parent 63d7394a36
commit cdcfbf8be1

View File

@@ -283,7 +283,10 @@ def main():
if team:
print('found team %s' % team_name)
print(' PTL : %(name)s (%(irc)s)' % team.ptl)
team_liaison = liaison_data.get(team.name.lower(), {})
team_liaison = liaison_data.get(
team.name.lower(),
{'Liaison': 'None', 'IRC Handle': ''},
)
print(' Liaison: %(Liaison)s (%(IRC Handle)s)\n' %
team_liaison)
team_deliv = team.deliverables.get(deliv.name)