Skip to content

Commit 8905ac1

Browse files
committed
If the author of a nomcom nomination is unknown, use 'Anonymous' and no email address in outgoing messages, instead of ''.
- Legacy-Id: 9627
1 parent b559542 commit 8905ac1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

ietf/nomcom/utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ def get_or_create_nominee(nomcom, candidate_name, candidate_email, position, aut
363363
if author:
364364
context.update({'nominator': author.person.name,
365365
'nominator_email': author.address})
366+
else:
367+
context.update({'nominator': 'Anonymous',
368+
'nominator_email': ''})
369+
366370
path = nomcom_template_path + NOMINATION_EMAIL_TEMPLATE
367371
send_mail(None, to_email, from_email, subject, path, context)
368372

0 commit comments

Comments
 (0)