new exception handled

This commit is contained in:
José Lopes 2018-10-04 16:01:57 -03:00
parent e2e44cd79a
commit 9bea9ffa3d
2 changed files with 3 additions and 2 deletions

View File

@ -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])

View File

@ -7,7 +7,7 @@ with open('README.md', 'r') as fh:
setuptools.setup(
name='netbox-scanner',
version='0.5.1',
version='0.5.2',
author='José Lopes de Oliveira Jr.',
author_email='jlojunior@gmail.com',
description='A scanner util for NetBox',