Rend SwitchNotFound plus verbeux

This commit is contained in:
Pierre-Elliott Bécue 2015-10-11 14:46:21 +02:00
parent abaea5ee8d
commit 26a82dbb92

View file

@ -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: