Adding conditionnal for --crans, no more exception

This commit is contained in:
Charlie Jacomme 2015-08-08 03:42:12 +02:00
parent eac34dfc55
commit 5f1a1b1397

View file

@ -1444,6 +1444,9 @@ def __recherche() :
elif res['adherent'] : elif res['adherent'] :
cprint(u'Aucun résultat à afficher') cprint(u'Aucun résultat à afficher')
sys.exit(4) sys.exit(4)
elif only_crans :
cprint(u"Résultats trouvés parmi les machines :", 'cyan')
aff(res['machine'],mtech)
# Non : on affiche tout. # Non : on affiche tout.
else : else :
if res['adherent'] : if res['adherent'] :