mirror of
https://github.com/lopes/netbox-scanner.git
synced 2025-07-22 13:24:38 +02:00
Log address get error
This commit is contained in:
parent
96b85808e9
commit
06032d8c8b
@ -41,8 +41,9 @@ class NetBoxScanner(object):
|
||||
'''
|
||||
try:
|
||||
nbhost = self.netbox.ipam.ip_addresses.get(address=host[0])
|
||||
except ValueError:
|
||||
logging.error(f'duplicated: {host[0]}/32')
|
||||
except ValueError as e:
|
||||
logging.error(e)
|
||||
logging.error(f'possibly duplicated: {host[0]}/32')
|
||||
self.stats['errors'] += 1
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user