Adding conditionnal for --crans, no more exception
This commit is contained in:
parent
eac34dfc55
commit
5f1a1b1397
1 changed files with 3 additions and 0 deletions
|
@ -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'] :
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue