From: Matthew Thode Date: Sun, 1 Feb 2015 06:13:59 +0000 (-0600) Subject: fixes error logging to use the right exception parent class X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=81ba3651504c25f3990e4fab5fcfc903713ad8bb;p=openstack-build%2Fneutron-build.git fixes error logging to use the right exception parent class looks like this was missed Closes-Bug: #1416798 Change-Id: If68c13b550d665dfa24b7380f53bee7f6fccdb23 --- diff --git a/neutron/plugins/ml2/plugin.py b/neutron/plugins/ml2/plugin.py index 58787aba9..4a352b61e 100644 --- a/neutron/plugins/ml2/plugin.py +++ b/neutron/plugins/ml2/plugin.py @@ -1183,7 +1183,7 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2, LOG.debug("No ports have port_id starting with %s", port_id) return - except exc.MultipleResultsFound: + except sa_exc.MultipleResultsFound: LOG.error(_LE("Multiple ports have port_id starting with %s"), port_id) return