PDF ticket output: Fix TypeError on 'content': null

This commit is contained in:
Raphael Michel
2017-12-04 15:48:21 +01:00
parent 0f8cd31e0a
commit 1b82b64a0a

View File

@@ -200,6 +200,8 @@ class PdfTicketOutput(BaseTicketOutput):
def _get_text_content(self, op: OrderPosition, order: Order, o: dict):
ev = op.subevent or order.event
if not o['content']:
return '(error)'
if o['content'] == 'other':
return o['text'].replace("\n", "<br/>\n")
elif o['content'].startswith('meta:'):