[controle_tresorier3] Noms non imprimables

darcs-hash:20111026210534-ddb99-4194aaac9ffe73bfa45f7bf39064d0b2582666d1.gz
This commit is contained in:
Michel Blockelet 2011-10-26 23:05:34 +02:00
parent c19637cdc5
commit a63dac4c56

View file

@ -69,9 +69,14 @@ if __name__ == "__main__":
if 'c' in adh.controle():
newcontr = newcontr.replace('c', '')
print coul(" * %s (aid=%s) : %s +%s -> %s" % (adh.Nom(), adh.id(),
adh.controle(), contr, (newcontr if newcontr else '[rien]')),
'bleu')
try:
print coul(" * %s (aid=%s) : %s +%s -> %s" % (adh.Nom(),
adh.id(), adh.controle(), contr, (newcontr if newcontr else
'[rien]')), 'bleu')
except:
print coul(" * [Nom non imprimable] (aid=%s) : %s +%s -> %s" %
(adh.id(), adh.controle(), contr, (newcontr if newcontr
else '[rien]')), 'bleu')
# Si la carte n'est pas notée, on le fait
if ann_scol not in adh.carteEtudiant() and 'c' in contr: