From 26a82dbb92a5fd7dddac188da3a2d0fd35f49c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pierre-Elliott=20B=C3=A9cue?= Date: Sun, 11 Oct 2015 14:46:21 +0200 Subject: [PATCH] Rend SwitchNotFound plus verbeux --- gestion/hptools2/switch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gestion/hptools2/switch.py b/gestion/hptools2/switch.py index 3d97f2f5..b5aea8c6 100644 --- a/gestion/hptools2/switch.py +++ b/gestion/hptools2/switch.py @@ -65,7 +65,7 @@ class HPSwitch(object): try: netaddr.IPAddress(switch) except netaddr.AddrFormatError: - raise SwitchNotFound + raise SwitchNotFound("Switch %r non trouvé." % (switch,)) switch_object = HPSwitchFactory.get_switch(__switch) if switch_object is None: