From 62b2a367ffef153f8051c8a277aa3ff3f2b6670b Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Mon, 25 Sep 2017 10:20:46 +0200 Subject: [PATCH] PDF Output: Fix AttributeError with undefined used meta data --- src/pretix/plugins/ticketoutputpdf/ticketoutput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py index 6f1bbe9bca..de13139e1b 100644 --- a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py +++ b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py @@ -70,7 +70,7 @@ class PdfTicketOutput(BaseTicketOutput): if o['content'] == 'other': return o['text'].replace("\n", "
\n") elif o['content'].startswith('meta:'): - return ev.meta_data.get(o['content'][5:]) + return ev.meta_data.get(o['content'][5:]) or '' elif o['content'] == 'order': return order.code elif o['content'] == 'item':