Handle expiring the last call of status change documents. Be more robust about errors when expiring last calls. Fixes . Commit ready for merge.

- Legacy-Id: 10811
This commit is contained in:
Robert Sparks 2016-02-10 15:37:58 +00:00
parent a07b318900
commit e7f90214c5
2 changed files with 8 additions and 3 deletions

View file

@ -14,5 +14,8 @@ from ietf.doc.lastcall import *
drafts = get_expired_last_calls()
for doc in drafts:
expire_last_call(doc)
syslog.syslog("Expired last call for %s (id=%s)" % (doc.file_tag(), doc.pk))
try:
expire_last_call(doc)
syslog.syslog("Expired last call for %s (id=%s)" % (doc.file_tag(), doc.pk))
except Exception as e:
syslog.syslog(syslog.LOG_ERR, "ERROR: Failed to expire last call for %s (id=%s)" % (doc.file_tag(), doc.pk))

View file

@ -357,7 +357,9 @@ def extra_automation_headers(doc):
return extra
def email_last_call_expired(doc):
text = "IETF Last Call has ended, and the state has been changed to\n%s." % doc.get_state("draft-iesg").name
if not doc.type_id in ['draft','statchg']:
return
text = "IETF Last Call has ended, and the state has been changed to\n%s." % doc.get_state("draft-iesg" if doc.type_id == 'draft' else "statchg").name
addrs = gather_address_lists('last_call_expired',doc=doc)
send_mail(None,