Fix flake8 issues

This commit is contained in:
Christopher Broderick
2023-10-10 14:08:47 +01:00
parent 276af1c03c
commit 104a849d9f
2 changed files with 4 additions and 4 deletions

View File

@ -97,7 +97,7 @@ def send_templated_mail(template_name,
if isinstance(recipients, str):
if recipients.find(','):
recipients = recipients.split(',')
elif type(recipients) != list:
elif type(recipients) is not list:
recipients = [recipients]
msg = EmailMultiAlternatives(subject_part, text_part,