]> 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)
committerGerrit Code Review <review@openstack.org>
Sun, 2 Mar 2014 09:03:19 +0000 (09:03 +0000)
commit6b13ee0c3b446b7fc4f440dd58c9226bf4abfdf8
tree8ff6675836ac466ecfdd9c2387693bdc424a05ed
parent2964b8483a7a8c2708c2bfe6baadac633b91582d
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