]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
netaddr<=0.7.10 raises ValueError instead of AddrFormatError
authorAaron Rosen <aaronorosen@gmail.com>
Wed, 16 Apr 2014 18:31:25 +0000 (11:31 -0700)
committerThomas Goirand <thomas@goirand.fr>
Mon, 9 Jun 2014 15:06:54 +0000 (23:06 +0800)
commita1ff2b5d80a7f8e9c2e6e5bf638e8dc47b60e5af
treef6f001d301bf62eda29feed539d32722a972d8dc
parent602ff0374c65e32456b65fb44a5c9c007379311c
netaddr<=0.7.10 raises ValueError instead of AddrFormatError

This patch ensures that ValueError is also caught in addition to
AddrFormatError as in netaddr>=0.7.11 AddrFormatError is raised and
in netaddr<=0.7.10 ValueError is raised.

Change-Id: I595c90e42129a2d365f3860e3042e826bd031365
Closes-bug: #1308675
(cherry picked from commit dd2ccd12adfb6c7d4aa500ba4120f767beeed35c)
neutron/extensions/securitygroup.py