From 9a33766f31ddad6e627331dc776edcc3da966281 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Wed, 12 Nov 2014 12:27:38 +0100 Subject: [PATCH] handle not having a president (#5928) --- tabellio/pcfdb/sync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py index 15f6f9c..ad59705 100644 --- a/tabellio/pcfdb/sync.py +++ b/tabellio/pcfdb/sync.py @@ -1446,7 +1446,8 @@ class SyncFromPcfDbView(BrowserView): vicepresidents.sort() secretaires.sort() table = u'' - table += u'' % get_link(president[0], president[1]) + if president is not None: + table += u'' % get_link(president[0], president[1]) for vicepresident in vicepresidents: table += u'' % ( vicepresident[0], get_link(vicepresident[1], vicepresident[2]))
Président%s
Président%s
%s%s