diff --git a/gestion/gest_crans.py b/gestion/gest_crans.py index 77eb48a6..dcf2d8f3 100644 --- a/gestion/gest_crans.py +++ b/gestion/gest_crans.py @@ -577,7 +577,7 @@ def set_droits(adher): droit = droit.strip() if droit == '': continue if droit not in droits_possibles: - raise ValueError('Droit %s incorrect' % droit) + raise ValueError(u'Droit %s incorrect' % droit) new.append(droit) # Dans le cas où l'utilisateur qui modifie n'est pas Nounou, on ajoute les @@ -1478,8 +1478,7 @@ def set_machine(machine): try: machine.mac(result[1]) except ValueError, c: - if len(c.args)>1 and c.args[1] == 1 \ - and (isadm or machine.nom().endswith("-g.crans.org")): + if len(c.args)>1 and c.args[1] == 1 and isadm: # Mac en double arg = u'--title "Adresse MAC" ' arg += u'--yesno "L\'adresse MAC existe déja, continuer ? \n" 0 0'