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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user