From 8acf292de070591c784eb501c55834c846cf60c5 Mon Sep 17 00:00:00 2001 From: pauget Date: Sun, 7 Aug 2005 11:56:22 +0200 Subject: [PATCH] Quand personne n'est loggu ne plante pas. darcs-hash:20050807095622-41617-43cfe646e87d6a2ef1372388f4b6057b0876919e.gz --- autologout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autologout.py b/autologout.py index 9f6fb529..6abbd19d 100755 --- a/autologout.py +++ b/autologout.py @@ -4,7 +4,7 @@ import sre, commands # pour chaque ligne du w for w in commands.getoutput("w -h").split('\n') : - + if not w : continue # on splite w = sre.split(' *', w)