From 06032d8c8b688d755bdc565010deef3f617554c4 Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Thu, 2 May 2024 09:22:18 -0400 Subject: [PATCH] Log address get error --- nbs/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nbs/__init__.py b/nbs/__init__.py index ee79cc3..764a261 100644 --- a/nbs/__init__.py +++ b/nbs/__init__.py @@ -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