Skip to content

Commit 1570e91

Browse files
committed
In active_wg(), don't be upset if group.ad_role() returns None, as it can do when the secretariat replaces outgoing ADs with incoming.
- Legacy-Id: 9343
1 parent dbf00fc commit 1570e91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/group/info.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def active_wgs(request):
208208
area.urls = area.groupurl_set.all().order_by("name")
209209
for group in area.groups:
210210
group.chairs = sorted(roles(group, "chair"), key=extract_last_name)
211-
group.ad_out_of_area = group.ad_role().person not in [role.person for role in area.ads]
211+
group.ad_out_of_area = group.ad_role() and group.ad_role().person not in [role.person for role in area.ads]
212212
# get the url for mailing list subscription
213213
if group.list_subscribe.startswith('http'):
214214
group.list_subscribe_url = group.list_subscribe

0 commit comments

Comments
 (0)