Rend SwitchNotFound plus verbeux
This commit is contained in:
parent
abaea5ee8d
commit
26a82dbb92
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class HPSwitch(object):
|
||||||
try:
|
try:
|
||||||
netaddr.IPAddress(switch)
|
netaddr.IPAddress(switch)
|
||||||
except netaddr.AddrFormatError:
|
except netaddr.AddrFormatError:
|
||||||
raise SwitchNotFound
|
raise SwitchNotFound("Switch %r non trouvé." % (switch,))
|
||||||
|
|
||||||
switch_object = HPSwitchFactory.get_switch(__switch)
|
switch_object = HPSwitchFactory.get_switch(__switch)
|
||||||
if switch_object is None:
|
if switch_object is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue