Update __main__.py

This commit is contained in:
Francesco Pavanello 2023-01-13 17:11:07 +01:00 committed by GitHub
parent b5cf80d73d
commit 008749100b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -568,7 +568,7 @@ async def handler(lst):
# use netaddr as the list may contain ipv4 and ipv6 addresses
ip_list = []
for ip in set(all_ip):
try:
try:
ip_list.append(netaddr.IPAddress(ip.strip()))
except Exception:
pass