diff --git a/tabellio/pcfdb/sync.py b/tabellio/pcfdb/sync.py
index 33ca505..0c14438 100644
--- a/tabellio/pcfdb/sync.py
+++ b/tabellio/pcfdb/sync.py
@@ -1518,13 +1518,14 @@ class SyncFromPcfDbView(BrowserView):
nom, prenom, description = row
presgroups.append((description, nom, prenom))
- presgroup = presgroups[0]
- table = conf_pres_table
- table += u'
Présidents de groupe | '
- if len(presgroups) > 1:
- for presgroup in presgroups[:-1]:
- table += u'- %s
' % get_link(presgroup[1], presgroup[2])
- table += u'- %s
|
' % get_link(presgroups[-1][1], presgroups[-1][2])
+ if presgroups:
+ presgroup = presgroups[0]
+ table = conf_pres_table
+ table += u'Présidents de groupe | '
+ if len(presgroups) > 1:
+ for presgroup in presgroups[:-1]:
+ table += u'- %s
' % get_link(presgroup[1], presgroup[2])
+ table += u'- %s
|
' % get_link(presgroups[-1][1], presgroups[-1][2])
table += u'Greffier (Secrétaire général) | %s |
' % self.settings.greffier_name