1
0
mirror of https://github.com/peeringdb/peeringdb.git synced 2024-05-11 05:55:09 +00:00

fix inet.get_prefix_protocol error handler

This commit is contained in:
Stefan Pratter
2018-12-05 04:22:19 +00:00
parent 205cf3dbcf
commit 4d764cd5b3

View File

@@ -91,5 +91,5 @@ def get_prefix_protocol(prefix):
try:
ipaddress.IPv6Network(prefix)
return "IPv6"
except ipaddress.AddessValueError:
raise ValueErrror("Prefix invalid")
except ipaddress.AddressValueError:
raise ValueError("Prefix invalid")