]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Get rid of exception converter in db/api.py
authorKevin Benton <blak111@gmail.com>
Sun, 16 Aug 2015 09:32:39 +0000 (02:32 -0700)
committerKevin Benton <blak111@gmail.com>
Sun, 16 Aug 2015 09:40:23 +0000 (02:40 -0700)
commit7e699606bb30422c87cf554470b6c98cfe183417
treefcf8f4c27d2f0f1e4bfe6cbeea20a355b0a18fff
parent82acd0652f0bb6afaa190901c8a4a06aab0cf8da
Get rid of exception converter in db/api.py

The exception converter was necessary because the exceptions the
oslo db decorator looked for before were statically defined. The
retry decorator now accepts an exception_checker argument that takes
a function to call on exceptions to determine if they should be
caught.

This patch gets rid of the converted and replaces the one use case
with the new exception_checker argument.

Closes-Bug: #1485819
Change-Id: Ic619b03737cbf51276f87c4458ecc4183424731c
neutron/db/api.py
neutron/plugins/ml2/plugin.py