From d22a7844ea01b31bd83b3f15bd441fbc65f2e1a0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 23 May 2019 10:49:22 +0200 Subject: [PATCH] Fix TypeError PRETIXEU-12W --- src/pretix/plugins/reports/exporters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pretix/plugins/reports/exporters.py b/src/pretix/plugins/reports/exporters.py index 57d1c2f30f..2a255e3e87 100644 --- a/src/pretix/plugins/reports/exporters.py +++ b/src/pretix/plugins/reports/exporters.py @@ -430,8 +430,8 @@ class OrderTaxListReport(Report): [ _('Total'), '', '', '', '' ] + sum(([ - localize(round_decimal(price_sums.get(t), self.event.currency)), - localize(round_decimal(tax_sums.get(t), self.event.currency)) + localize(round_decimal(price_sums.get(t) or Decimal('0.00'), self.event.currency)), + localize(round_decimal(tax_sums.get(t) or Decimal('0.00'), self.event.currency)) ] for t in tax_rates), []), )