#325: participant/passwords/print/ raises server-error

This commit is contained in:
Emanuel Schuetze 2012-07-23 23:03:42 +02:00
parent f12d155651
commit f3d656c98d

View File

@ -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),