summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorBoris Pavlovic <boris@pavlovic.me>2013-06-14 17:53:53 +0400
committerBoris Pavlovic <boris@pavlovic.me>2013-06-22 00:09:22 +0400
commit616098dcd36b20e01d38898b8942003df664e6ac (patch)
tree0000b9be01d6c6aa565a687c5490def7075bb0d4 /nova/tests
parentd147af21db2db77f578e527883cf2c68abc56496 (diff)
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/tests')
-rw-r--r--nova/tests/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/tests/utils.py b/nova/tests/utils.py
index 994e4f220..556d1f91d 100644
--- a/nova/tests/utils.py
+++ b/nova/tests/utils.py
@@ -212,5 +212,5 @@ def is_ipv6_supported():
if e.errno == errno.EAFNOSUPPORT:
has_ipv6_support = False
else:
- raise e
+ raise
return has_ipv6_support