grep renvoie une erreur quand aucune ligne ne matche

darcs-hash:20051005121820-d1718-51fcf18045d5c3c28b1735505247f826803fbe85.gz
This commit is contained in:
bernat 2005-10-05 14:18:20 +02:00
parent 45e58dec8f
commit 7055247931

View file

@ -19,7 +19,7 @@ def execute(macro, text) :
status = getstatusoutput('grep -v " 0 " /etc/autostatus/local.status')
if status[0] :
if status[0] and status[0] != 256 :
return Cellule('Impossible d\'analyser le fichier de status.','yellow',macro.formatter)
if not status[1].strip() :