diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index ff438e6e..eafe1d83 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -31,7 +31,7 @@ from time import strftime, strptime, localtime, mktime import re import affich_tools, config -from affich_tools import cprint +from affich_tools import cprint, to_encoding from lock import make_lock, remove_lock from ldap_crans import crans_ldap, blacklist_items, ann_scol, droits_possibles, droits_critiques, smtpserv, script_utilisateur from ldap_crans import Adherent, AssociationCrans, Club diff --git a/gestion/ldap_crans.py b/gestion/ldap_crans.py index a13e938c..dd96265a 100644 --- a/gestion/ldap_crans.py +++ b/gestion/ldap_crans.py @@ -2858,7 +2858,7 @@ Contactez nounou si la MAC est bien celle d'une carte.""", 3) break if not len(pool_ip): - raise RuntimeError(u"Plus d'IP libres dans %s." % ' et '.join(net, ' et ')) + raise RuntimeError(u"Plus d'IP libres dans %s." % ' et '.join(net)) else: # L'ip est elle dans le bon sous-réseau ?