mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
PDF renderer: Do not break on wrong poweredby-styles
This commit is contained in:
@@ -216,6 +216,8 @@ class Renderer:
|
||||
|
||||
def _draw_poweredby(self, canvas: Canvas, op: OrderPosition, o: dict):
|
||||
content = o.get('content', 'dark')
|
||||
if content not in ('dark', 'white'):
|
||||
content = 'dark'
|
||||
img = finders.find('pretixpresale/pdf/powered_by_pretix_{}.png'.format(content))
|
||||
|
||||
ir = ThumbnailingImageReader(img)
|
||||
|
||||
Reference in New Issue
Block a user