add defaults for to_recipients in send_mail and add_outgoing_email

This commit is contained in:
Stephan Telling 2017-05-21 21:14:06 +02:00
parent da26b3e0d3
commit 750ab94f93
No known key found for this signature in database
GPG key ID: D4892289F36ADA9B

View file

@ -11,8 +11,8 @@ logger = logging.getLogger("bornhack.%s" % __name__)
def _send_email( def _send_email(
text_template, text_template,
to_recipients,
subject, subject,
to_recipients=[],
cc_recipients=[], cc_recipients=[],
bcc_recipients=[], bcc_recipients=[],
html_template='', html_template='',
@ -60,9 +60,9 @@ def _send_email(
def add_outgoing_email( def add_outgoing_email(
text_template, text_template,
to_recipients,
formatdict, formatdict,
subject, subject,
to_recipients=[],
cc_recipients=[], cc_recipients=[],
bcc_recipients=[], bcc_recipients=[],
html_template='', html_template='',