Skip to content

Commit db5d11e

Browse files
committed
Remove the rest of the log.assertions checking that iesg_state existed in places we expected it to. Commit ready for merge.
- Legacy-Id: 17496
1 parent f2b106c commit db5d11e

4 files changed

Lines changed: 0 additions & 4 deletions

File tree

ietf/doc/models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,6 @@ def friendly_state(self):
333333
else:
334334
return "Replaced"
335335
elif state.slug == "active":
336-
log.assertion('iesg_state')
337336
if iesg_state:
338337
if iesg_state.slug == "dead":
339338
# Many drafts in the draft-iesg "Dead" state are not dead

ietf/doc/templatetags/ballot_icon.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ def state_age_colored(doc):
168168
# Don't show anything for expired/withdrawn/replaced drafts
169169
return ""
170170
iesg_state = doc.get_state_slug('draft-iesg')
171-
log.assertion('iesg_state')
172171
if not iesg_state:
173172
return ""
174173

ietf/doc/views_doc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,6 @@ def document_main(request, name, rev=None):
405405
actions.append((label, urlreverse('ietf.doc.views_draft.request_publication', kwargs=dict(name=doc.name))))
406406

407407
if doc.get_state_slug() not in ["rfc", "expired"] and doc.stream_id in ("ietf",) and not snapshot:
408-
log.assertion('iesg_state')
409408
if iesg_state.slug == 'idexists' and can_edit:
410409
actions.append(("Begin IESG Processing", urlreverse('ietf.doc.views_draft.edit_info', kwargs=dict(name=doc.name)) + "?new=1"))
411410
elif can_edit_stream_info and (iesg_state.slug in ('idexists','watching')):

ietf/idindex/index.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ def all_id2_txt():
157157
# 3
158158
if state == "active":
159159
s = "I-D Exists"
160-
log.assertion('iesg_state')
161160
if iesg_state:
162161
s = iesg_state.name
163162
tags = d.tags.filter(slug__in=IESG_SUBSTATE_TAGS).values_list("name", flat=True)

0 commit comments

Comments
 (0)