grep renvoie une erreur quand aucune ligne ne matche
darcs-hash:20051005121820-d1718-51fcf18045d5c3c28b1735505247f826803fbe85.gz
This commit is contained in:
parent
45e58dec8f
commit
7055247931
1 changed files with 1 additions and 1 deletions
|
@ -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() :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue