Skip to content

Commit 49eb500

Browse files
committed
Only set published state for relevant state type
- Legacy-Id: 4908
1 parent 9c6fd95 commit 49eb500

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/sync/rfceditor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,8 @@ def update_docs_from_rfc_index(data, skip_older_than_date=None):
383383
results.append("Added RFC published event: %s" % e.time.strftime("%Y-%m-%d"))
384384

385385
for t in ("draft-iesg", "draft-stream-iab", "draft-stream-irtf", "draft-stream-ise"):
386-
if doc.get_state_slug(t) != "pub":
386+
slug = doc.get_state_slug(t)
387+
if slug and slug != "pub":
387388
changed_states.append(State.objects.get(type=t, slug="pub"))
388389

389390
def parse_relation_list(l):

0 commit comments

Comments
 (0)