From 81ba3651504c25f3990e4fab5fcfc903713ad8bb Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Sun, 1 Feb 2015 00:13:59 -0600 Subject: [PATCH] fixes error logging to use the right exception parent class looks like this was missed Closes-Bug: #1416798 Change-Id: If68c13b550d665dfa24b7380f53bee7f6fccdb23 --- neutron/plugins/ml2/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.2