[crans] On cumule les erreurs
This commit is contained in:
parent
6532f805ad
commit
5ce1dd11c2
9 changed files with 20 additions and 47 deletions
|
@ -212,28 +212,3 @@ class mail_ajout_droits:
|
|||
if self.debug:
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
|
||||
|
||||
class ML_ens:
|
||||
debug = True
|
||||
|
||||
def __init__(self, mails):
|
||||
self.mails = mails
|
||||
|
||||
def reconfigure(self):
|
||||
cprint(u'Inscription ML-ENS', 'gras')
|
||||
mlist = MailList('com-ens')
|
||||
for mail in self.mails:
|
||||
anim('\t' + mail)
|
||||
try:
|
||||
mlist.ApprovedAddMember(UserDesc(mail))
|
||||
except MMAlreadyAMember:
|
||||
cprint(u"DÉJÀ INSCRIT", "jaune")
|
||||
except:
|
||||
print ERREUR
|
||||
if self.debug:
|
||||
traceback.print_exc()
|
||||
else:
|
||||
print OK
|
||||
mlist.Save()
|
||||
mlist.Unlock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue