Check attribute isn't None before accessing sub-attributes.
- Legacy-Id: 14860
This commit is contained in:
parent
a7b9c4b733
commit
7f0de265e9
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue