padma poster should not fail without timeline

This commit is contained in:
j 2011-08-13 12:03:30 +02:00
parent 799930c395
commit 63a4aac9fd

View file

@ -30,6 +30,7 @@ def render_poster(id, title, frame, timeline, poster):
# timeline
timeline_height = 64
timeline_lines = 16
if timeline:
timeline_image = Image.open(timeline)
timeline_image = timeline_image.resize((10240, timeline_height), Image.ANTIALIAS)
for i in range(timeline_lines):