Skip to content

Commit 0af05ca

Browse files
committed
Catch bad or missing area when generating the all_id2 file.
- Legacy-Id: 2487
1 parent 9306eee commit 0af05ca

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

ietf/idindex/views.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
from django.http import HttpResponse, HttpResponsePermanentRedirect
3636
from django.template import loader
3737
from django.shortcuts import get_object_or_404
38-
from ietf.idtracker.models import Acronym, IETFWG, InternetDraft, IDInternal,PersonOrOrgInfo
38+
from ietf.idtracker.models import Acronym, IETFWG, InternetDraft, IDInternal,PersonOrOrgInfo, Area
3939
from ietf.idtracker.templatetags.ietf_filters import clean_whitespace
4040
import re
4141
import sys
@@ -91,7 +91,10 @@ def all_id2_entry(id):
9191
# 8
9292
area = ""
9393
if id.idinternal:
94-
area = id.idinternal.area_acronym
94+
try:
95+
area = id.idinternal.area_acronym
96+
except Area.DoesNotExist:
97+
pass
9598
elif not group_acronym:
9699
pass
97100
else:

0 commit comments

Comments
 (0)