From a0382b81127c723ce864805a118b93a3427a7e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Tue, 26 Mar 2013 16:45:05 +0100 Subject: [PATCH] =?UTF-8?q?[analyse]=20Truc=20sans=20int=C3=A9r=C3=AAt=20q?= =?UTF-8?q?ui=20tra=C3=AEne=20dont=20je=20sais=20pas=20qui=20l'a=20fait?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- surveillance/analyse.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/surveillance/analyse.py b/surveillance/analyse.py index af779e4b..cd8c4010 100755 --- a/surveillance/analyse.py +++ b/surveillance/analyse.py @@ -231,6 +231,9 @@ Exemple : except socket.gaierror : print "Hôte %s inconnu" % value sys.exit(5) + except socket.herror: + print "Hôte %s inconnu" % value + ip_crans.append(value) if len(ip_crans_nom)==1: print ' depuis la machine %s' % ip_crans_nom[0] elif ip_crans_nom: