if a team does not exist in governance return empty set of tags

Change-Id: I9c3ff38de16cc45b8ca8aa03ab35ac897207a892
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-02-23 14:22:14 -05:00
parent 87810864f2
commit 55c12c6f36
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ def get_team_data(url=PROJECTS_LIST):
def get_tags_for_deliverable(team_data, team, name):
"Return the tags for the deliverable owned by the team."
if team not in team_data:
return set()
team_info = team_data[team]
dinfo = team_info['deliverables'].get(name)
if not dinfo: