Skip to content

Commit 8eb447e

Browse files
committed
Added an improved guard against trying to fetch milestones for a group value of None.
- Legacy-Id: 12989
1 parent 707b006 commit 8eb447e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/utils_charter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def historic_milestones_for_charter(charter, rev):
126126
just_before_next_rev = datetime.datetime.now()
127127

128128
res = []
129-
if charter.chartered_group:
129+
if hasattr(charter, 'chartered_group'):
130130
for m in charter.chartered_group.groupmilestone_set.all():
131131
mh = find_history_active_at(m, just_before_next_rev)
132132
if mh and mh.state_id == need_state:

0 commit comments

Comments
 (0)