diff options
author | Takashi Natsume <takanattie@gmail.com> | 2020-05-11 15:56:19 +0000 |
---|---|---|
committer | Takashi Natsume <takanattie@gmail.com> | 2020-08-15 07:45:49 +0000 |
commit | 2c074b9486ed8c2e1fd17b958bf4d2a26517509b (patch) | |
tree | 0d83cace982797c460d4927a97998356ab071efd /nova/test.py | |
parent | 5191b4f2f00018d0273bedbc55c8a88087a25871 (diff) | |
download | nova-2c074b9486ed8c2e1fd17b958bf4d2a26517509b.tar.gz |
Remove six.reraise
Replace six.reraise with Python 3 style code.
Subsequent patches will replace other six usages.
Change-Id: Ib129cb399d1521ad6d18fcf0b8ac9fd793888c81
Implements: blueprint six-removal
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
Diffstat (limited to 'nova/test.py')
-rw-r--r-- | nova/test.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/test.py b/nova/test.py index 12477ff6cc..dd0fc4daa5 100644 --- a/nova/test.py +++ b/nova/test.py @@ -137,7 +137,7 @@ class NovaExceptionReraiseFormatError(object): def _wrap_log_exception(self): exc_info = sys.exc_info() NovaExceptionReraiseFormatError.real_log_exception(self) - six.reraise(*exc_info) + raise exc_info[1] # NOTE(melwitt) This needs to be done at import time in order to also catch |