Handle expiring the last call of status change documents. Be more robust about errors when expiring last calls. Fixes #1911. Commit ready for merge.
- Legacy-Id: 10811
This commit is contained in:
parent
a07b318900
commit
e7f90214c5
ietf
|
@ -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))
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue