Check attribute isn't None before accessing sub-attributes.

- Legacy-Id: 14860
This commit is contained in:
Henrik Levkowetz 2018-03-18 15:14:58 +00:00
parent a7b9c4b733
commit 7f0de265e9

View file

@ -1944,7 +1944,7 @@ def past(request):
in meetings.filter(type='interim')]
group_parents = []
for g in groups:
if g.parent.acronym not in seen:
if g.parent and g.parent.acronym not in seen:
group_parents.append(g.parent)
seen.add(g.parent.acronym)