mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +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,
|
||||
event=event.id if event else None,
|
||||
headers=headers,
|
||||
invoices=[i.pk for i in invoices]
|
||||
invoices=[i.pk for i in invoices] if invoices else []
|
||||
)
|
||||
|
||||
if invoices:
|
||||
|
||||
Reference in New Issue
Block a user