Fix issue created in 1f889be0

This commit is contained in:
Raphael Michel
2017-09-27 14:40:15 +02:00
parent 72ae19a95d
commit ae6cba067c

View File

@@ -205,7 +205,7 @@ class PdfTicketOutput(BaseTicketOutput):
return ev.meta_data.get(o['content'][5:]) or ''
elif o['content'] in self.variables:
try:
self.variables[o['content']]['evaluate'](op, order, ev)
return self.variables[o['content']]['evaluate'](op, order, ev)
except:
logger.exception('Failed to process variable.')
return '(error)'