mirror of
https://github.com/lopes/netbox-scanner.git
synced 2025-07-22 21:34:56 +02:00
new exception handled
This commit is contained in:
parent
e2e44cd79a
commit
9bea9ffa3d
@ -44,7 +44,8 @@ class NetBoxScanner(object):
|
||||
re.search(self.devs[vendor]['REGEX'],
|
||||
str(stdout.read().decode('utf-8'))).group(self.devs[vendor]['REGROUP']))
|
||||
except (AuthenticationException, SSHException,
|
||||
NoValidConnectionsError, TimeoutError):
|
||||
NoValidConnectionsError, TimeoutError,
|
||||
ConnectionResetError):
|
||||
pass
|
||||
return '{}.{}.{}'.format(c.get_vendor()[0], c.get_product()[0],
|
||||
c.get_version()[0])
|
||||
|
Loading…
x
Reference in New Issue
Block a user