Fix linting warning

This commit is contained in:
Daniel Carrillo 2022-09-30 21:00:16 +02:00
parent 87618a960d
commit b657c4a4d3
Signed by: dcarrillo
GPG Key ID: E4CD5C09DAED6E16
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
__version__ = '1.0.4' __version__ = '1.0.5'
__description__ = 'Look up canonical information for AWS IP addresses and networks' __description__ = 'Look up canonical information for AWS IP addresses and networks'

View File

@ -181,7 +181,7 @@ class DigAWS():
data = [prefix for prefix in self.ipv6_prefixes data = [prefix for prefix in self.ipv6_prefixes
if addr.subnet_of(prefix['ipv6_prefix'])] if addr.subnet_of(prefix['ipv6_prefix'])]
except (ipaddress.AddressValueError, ValueError): except (ipaddress.AddressValueError, ValueError):
raise(ValueError(f'Wrong IP or CIDR format: {address}')) raise ValueError(f'Wrong IP or CIDR format: {address}')
return data return data