handle not having a president (#5928)
This commit is contained in:
parent
3d9b3b58fc
commit
9a33766f31
|
@ -1446,7 +1446,8 @@ class SyncFromPcfDbView(BrowserView):
|
|||
vicepresidents.sort()
|
||||
secretaires.sort()
|
||||
table = u'<table>'
|
||||
table += u'<tr><td>Président</td><td>%s</td></tr>' % get_link(president[0], president[1])
|
||||
if president is not None:
|
||||
table += u'<tr><td>Président</td><td>%s</td></tr>' % get_link(president[0], president[1])
|
||||
for vicepresident in vicepresidents:
|
||||
table += u'<tr><td>%s</td><td>%s</td></tr>' % (
|
||||
vicepresident[0], get_link(vicepresident[1], vicepresident[2]))
|
||||
|
|
Reference in New Issue