From 7e7a38cc3cc9f8769bf1ae95e97347624a5688ea Mon Sep 17 00:00:00 2001 From: Christopher Broderick Date: Tue, 10 Oct 2023 13:42:40 +0100 Subject: [PATCH] Fix to avoid using "hidden" variable as kwarg. --- helpdesk/tests/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/tests/utils.py b/helpdesk/tests/utils.py index 24c231c3..e3011b2b 100644 --- a/helpdesk/tests/utils.py +++ b/helpdesk/tests/utils.py @@ -240,7 +240,7 @@ def generate_multipart_email(locale: str="en_US", :param sub_type: multipart sub type that defaults to "mixed" if not specified :param use_short_email: produces a "To" or "From" that is only the email address if True """ - msg = MIMEMultipart(_subtype=sub_type) if sub_type else MIMEMultipart() + msg = MIMEMultipart(sub_type) if sub_type else MIMEMultipart() for part_type in type_list: msg.attach(generate_mime_part(locale=locale, part_type=part_type)) from_meta, to_meta = add_simple_email_headers(msg, locale=locale, use_short_email=use_short_email)