]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
fixes error logging to use the right exception parent class
authorMatthew Thode <mthode@mthode.org>
Sun, 1 Feb 2015 06:13:59 +0000 (00:13 -0600)
committerMatthew Thode <mthode@mthode.org>
Sun, 1 Feb 2015 06:16:34 +0000 (00:16 -0600)
looks like this was missed

Closes-Bug: #1416798
Change-Id: If68c13b550d665dfa24b7380f53bee7f6fccdb23

neutron/plugins/ml2/plugin.py

index 58787aba9f1181e42b0b97be55e2e38cd2fb422e..4a352b61eb1b858c95703d3b34bfe03803d1baf4 100644 (file)
@@ -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