Commit a072730f authored by Michael Kroes's avatar Michael Kroes Committed by Joshua Tauberer

Wrap normalize_ip in try..except (#1139)

closes #1134
parent 00c61dbc
......@@ -894,7 +894,10 @@ def run_and_output_changes(env, pool):
def normalize_ip(ip):
# Use ipaddress module to normalize the IPv6 notation and ensure we are matching IPv6 addresses written in different representations according to rfc5952.
import ipaddress
return str(ipaddress.ip_address(ip))
try:
return str(ipaddress.ip_address(ip))
except:
return ip
class FileOutput:
def __init__(self, buf, width):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment