diff --git a/gestion/tools/whosthere.py b/gestion/tools/whosthere.py index 45cf2c51..83c15326 100755 --- a/gestion/tools/whosthere.py +++ b/gestion/tools/whosthere.py @@ -54,8 +54,12 @@ def pretty_name(item): try: nom = unicode(item['nom'][0]) - prenom = unicode(item['prenom'][0]) - v = prenom + u" " + nom + try: + prenom = unicode(item['prenom'][0]) + v = prenom + u" " + nom + #Si c'est un club + except KeyError: + v = nom except KeyError: nom = unicode(item['host'][0]) v = nom