From f3d656c98d121585b7754b39c64c536efc732e2b Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Mon, 23 Jul 2012 23:03:42 +0200 Subject: [PATCH] #325: participant/passwords/print/ raises server-error --- openslides/participant/views.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openslides/participant/views.py b/openslides/participant/views.py index 3e6d3df68..5b7c237ab 100644 --- a/openslides/participant/views.py +++ b/openslides/participant/views.py @@ -686,7 +686,10 @@ class ParticipantsPasswordsPDF(PDFView): data.append([cell,cell2]) except Profile.DoesNotExist: pass - + # add empty table line if no participants available + if data == []: + data.append(['','']) + # build table t=Table(data, 10.5*cm, 7.42*cm) t.setStyle(TableStyle([ ('LINEBELOW', (0,0), (-1,0), 0.25, colors.grey),