fix: use None as default for attachments

Instead of "[]" to avoid useless JSON parsing.
This commit is contained in:
barredterra 2023-08-04 00:37:05 +02:00
parent 8d6480df1c
commit 617e5551e7

View file

@ -37,7 +37,7 @@ def make(
send_email=False,
print_html=None,
print_format=None,
attachments="[]",
attachments=None,
send_me_a_copy=False,
cc=None,
bcc=None,
@ -114,7 +114,7 @@ def _make(
send_email=False,
print_html=None,
print_format=None,
attachments="[]",
attachments=None,
send_me_a_copy=False,
cc=None,
bcc=None,