diff --git a/pootle/apps/reports/models/invoice.py b/pootle/apps/reports/models/invoice.py index 8bd7c75db0..f606ced88e 100644 --- a/pootle/apps/reports/models/invoice.py +++ b/pootle/apps/reports/models/invoice.py @@ -364,7 +364,10 @@ def send_by_email(self, override_to=None, override_bcc=None): override_to=override_to, override_bcc=override_bcc).send() - attachments = [file[0] for file in self.files if 'html' not in file[1]] + attachments = [ + (file[0], file[1]) # file path, mime type + for file in self.files if 'html' not in file[1] + ] count = 0 count += UserPaymentEmail(self.id, self.conf, ctx, override_to=override_to,