Browse Source

Merge "netaddr<=0.7.10 raises ValueError instead of AddrFormatError"

changes/16/88516/1
Jenkins 8 years ago committed by Gerrit Code Review
parent
commit
564502af74
  1. 2
      neutron/extensions/securitygroup.py

2
neutron/extensions/securitygroup.py

@ -167,7 +167,7 @@ def convert_ip_prefix_to_cidr(ip_prefix):
try:
cidr = netaddr.IPNetwork(ip_prefix)
return str(cidr)
except (TypeError, netaddr.AddrFormatError):
except (ValueError, TypeError, netaddr.AddrFormatError):
raise qexception.InvalidCIDR(input=ip_prefix)

Loading…
Cancel
Save