From fb3866aa1a8a3134a26e8d68fca3e0d2d7d9e5e5 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Wed, 13 Sep 2017 14:59:19 +0200 Subject: [PATCH] Fix TypError in PDF preview --- 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 91e14fffcb..6f1bbe9bca 100644 --- a/src/pretix/plugins/ticketoutputpdf/ticketoutput.py +++ b/src/pretix/plugins/ticketoutputpdf/ticketoutput.py @@ -150,7 +150,7 @@ class PdfTicketOutput(BaseTicketOutput): alignment=align_map[o['align']] ) - p = Paragraph(self._get_text_content(op, order, o), style=style) + p = Paragraph(self._get_text_content(op, order, o) or "", style=style) p.wrapOn(canvas, float(o['width']) * mm, 1000 * mm) # p_size = p.wrap(float(o['width']) * mm, 1000 * mm) ad = getAscentDescent(font, float(o['fontsize']))