Skip to content

Commit

Permalink
fix: exception
Browse files Browse the repository at this point in the history
  • Loading branch information
saemideluxe committed Nov 15, 2023
1 parent 8212c59 commit 119a2d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion basxconnect/invoicing/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ def send_message(
email = EmailMessage(
subject=send_form.cleaned_data["subject"],
body=send_form.cleaned_data["body"],
to=[recp["recipient"] for recp in recipient_formset.cleaned_data],
to=[
recp["recipient"]
for recp in recipient_formset.cleaned_data
if "recipient" in recp
],
)
filename, data = send_form.cleaned_data["template"].generate_document_pdf(
invoice
Expand Down

0 comments on commit 119a2d3

Please sign in to comment.