]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Avoid using "raise" to reraise with modified exception
authorAkihiro Motoki <motoki@da.jp.nec.com>
Wed, 12 Feb 2014 17:51:45 +0000 (02:51 +0900)
committerThomas Goirand <thomas@goirand.fr>
Thu, 13 Mar 2014 07:20:39 +0000 (15:20 +0800)
commitf55142e907f18ee2a54f00b3bfc964b250c286d1
treea0c08adb26c278b1a09ad7cd908c5e51d32290b0
parent599b4c79284c9bb440aaf2fb3d98bc291f5dbb63
Avoid using "raise" to reraise with modified exception

The code changes the exception and reraises it.
This commit changes the code to use the same way as
excutils.save_and_reraise_exception does to ensure
the exception context.

This is the last patch of reraise clean up series.

Closes-Bug: #1279813
Change-Id: I8787dcbdc8321f75964de26e97cae395707aafc2
neutron/api/v2/resource.py