]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
The exception type is wrong and makes the except block not work
authorHong Hui Xiao <xiaohhui@cn.ibm.com>
Fri, 16 Oct 2015 16:39:32 +0000 (12:39 -0400)
committerAssaf Muller <amuller@redhat.com>
Fri, 16 Oct 2015 19:12:20 +0000 (15:12 -0400)
commit9d6584120003f50782461677d1b783bd07131444
tree7bf68784498d481a2a357ea502fa172ebd654818
parent0312b1237b1a74aec82163ef863624d2607563d2
The exception type is wrong and makes the except block not work

According to the context, it should be KeyError here to catch.
AttributeError will not happen here. More details could be found
in the bug report.

Change-Id: Id6351172703ac492e86475f75bf1be03f4e4e8a3
Closes-bug: #1506934
neutron/agent/l3/ha.py
neutron/tests/unit/agent/l3/test_agent.py