Skip to content

Commit 4efa035

Browse files
committed
Added a guard against trying to use historic group parent information when parent is None
- Legacy-Id: 18140
1 parent d81a0e4 commit 4efa035

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ietf/meeting/views.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1404,8 +1404,9 @@ def agenda_json(request, num=None ):
14041404
if asgn.session.historic_group.is_bof():
14051405
sessdict['is_bof'] = True
14061406
if asgn.session.historic_group.type_id in ['wg','rg', 'ag',] or asgn.session.historic_group.acronym in ['iesg',]:
1407-
sessdict['group']['parent'] = asgn.session.historic_group.historic_parent.acronym
1408-
parent_acronyms.add(asgn.session.historic_group.historic_parent.acronym)
1407+
if asgn.session.historic_group.historic_parent:
1408+
sessdict['group']['parent'] = asgn.session.historic_group.historic_parent.acronym
1409+
parent_acronyms.add(asgn.session.historic_group.historic_parent.acronym)
14091410
if asgn.session.name:
14101411
sessdict['name'] = asgn.session.name
14111412
else:

0 commit comments

Comments
 (0)