diff --git a/gestion/hptools.py b/gestion/hptools.py index b72f6335..e4a10261 100755 --- a/gestion/hptools.py +++ b/gestion/hptools.py @@ -423,7 +423,11 @@ if __name__ == '__main__' : for sw in switchs : print sw - s = hpswitch(sw) - for cmd in cmds : - print s.send_cmd(cmd) + try: + # Au cas ou le switch ne répondrai pas + s = hpswitch(sw) + for cmd in cmds : + print s.send_cmd(cmd) + except : + print 'ERREUR'