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.
Reviewed: https:/ /review. openstack. org/34349 github. com/openstack/ oslo-incubator/ commit/ 31325752e1d202c 95f65b8af0e656b 283043f1cd
Committed: http://
Submitter: Jenkins
Branch: master
commit 31325752e1d202c 95f65b8af0e656b 283043f1cd
Author: Sergey Vilgelm <email address hidden>
Date: Tue Jun 25 14:42:15 2013 +0400
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: I7bce659591c4c3 e4bc41e12d7d839 0128c30e2e4