Ne plante pas si l'objet est un club et non un adhérent
This commit is contained in:
parent
4c20f02f73
commit
0adfe858cc
1 changed files with 6 additions and 2 deletions
|
@ -54,8 +54,12 @@ def pretty_name(item):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
nom = unicode(item['nom'][0])
|
nom = unicode(item['nom'][0])
|
||||||
prenom = unicode(item['prenom'][0])
|
try:
|
||||||
v = prenom + u" " + nom
|
prenom = unicode(item['prenom'][0])
|
||||||
|
v = prenom + u" " + nom
|
||||||
|
#Si c'est un club
|
||||||
|
except KeyError:
|
||||||
|
v = nom
|
||||||
except KeyError:
|
except KeyError:
|
||||||
nom = unicode(item['host'][0])
|
nom = unicode(item['host'][0])
|
||||||
v = nom
|
v = nom
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue