mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix TypeError
This commit is contained in:
@@ -150,7 +150,7 @@ def mail(email: str, subject: str, template: Union[str, LazyI18nString],
|
|||||||
sender=sender,
|
sender=sender,
|
||||||
event=event.id if event else None,
|
event=event.id if event else None,
|
||||||
headers=headers,
|
headers=headers,
|
||||||
invoices=[i.pk for i in invoices]
|
invoices=[i.pk for i in invoices] if invoices else []
|
||||||
)
|
)
|
||||||
|
|
||||||
if invoices:
|
if invoices:
|
||||||
|
|||||||
Reference in New Issue
Block a user