From 5398671fde93427f410abb272738310378ffdfc9 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 28 Aug 2023 11:45:13 +0200 Subject: [PATCH] Fix crash in invoice address detection (PRETIXEU-8XE) --- src/pretix/presale/checkoutflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/presale/checkoutflow.py b/src/pretix/presale/checkoutflow.py index 083a91a94b..f33930e417 100644 --- a/src/pretix/presale/checkoutflow.py +++ b/src/pretix/presale/checkoutflow.py @@ -1038,7 +1038,7 @@ class QuestionsStep(QuestionsViewMixin, CartMixin, TemplateFlowStep): def reduce_initial(v): if isinstance(v, dict): # try to flatten objects such as name_parts to a single string to determine whether they have any value set - return ''.join([v for k, v in v.items() if not k.startswith('_')]) + return ''.join([v for k, v in v.items() if not k.startswith('_') and v]) else: return v