From ac4ecfbe691192fbd4ea03a7e8ca5754d5985191 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 26 Feb 2019 09:16:32 +0100 Subject: [PATCH] OrderChangeManager: Fix a type error for orders without tax --- src/pretix/base/services/orders.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/base/services/orders.py b/src/pretix/base/services/orders.py index 5f92359502..0e1f9df58e 100644 --- a/src/pretix/base/services/orders.py +++ b/src/pretix/base/services/orders.py @@ -823,7 +823,7 @@ class OrderChangeManager: if keep_price: price = TaxedPrice(gross=position.price, net=position.price - position.tax_value, tax=position.tax_value, rate=position.tax_rate, - name=position.tax_rule.name) + name=position.tax_rule.name if position.tax_rule else None) else: price = get_price(item, variation, voucher=position.voucher, subevent=position.subevent, invoice_address=self._invoice_address)