diff options
author | Boris Pavlovic <boris@pavlovic.me> | 2013-06-14 17:53:53 +0400 |
---|---|---|
committer | Boris Pavlovic <boris@pavlovic.me> | 2013-06-22 00:09:22 +0400 |
commit | 616098dcd36b20e01d38898b8942003df664e6ac (patch) | |
tree | 0000b9be01d6c6aa565a687c5490def7075bb0d4 /nova/utils.py | |
parent | d147af21db2db77f578e527883cf2c68abc56496 (diff) | |
download | nova-616098dcd36b20e01d38898b8942003df664e6ac.tar.gz nova-616098dcd36b20e01d38898b8942003df664e6ac.tar.xz nova-616098dcd36b20e01d38898b8942003df664e6ac.zip |
Do not raise NEW exceptions
Raising NEW exception is bad practice, because we lose TraceBack.
So all places like:
except SomeException as e:
raise e
should be replaced by
except SomeException:
raise
If we are doing some other actions before reraising we should
store information about exception then do all actions and then
reraise it. This is caused by eventlet bug. It lost information
about exception if it switch threads.
fixes bug 1191730
Change-Id: Ia375ecef9f16bda65d5146d14ed4b37a988abb0c
Diffstat (limited to 'nova/utils.py')
0 files changed, 0 insertions, 0 deletions