Use six.reraise for python3
This currently is invalid syntax in python3. Use six so we can support both python2 and python3. Change-Id: I7eb664908bdc14551ffac3bb3665cbc5cb84bd84 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
f6a0e4fc4f
commit
927c79c4a2
@ -18,6 +18,7 @@
|
||||
|
||||
import sys
|
||||
import threading
|
||||
import six
|
||||
from six.moves import queue as Queue
|
||||
import logging
|
||||
import time
|
||||
@ -49,7 +50,7 @@ class Task(object):
|
||||
def wait(self):
|
||||
self._wait_event.wait()
|
||||
if self._exception:
|
||||
raise self._exception, None, self._traceback
|
||||
six.reraise(self._exception, None, self._traceback)
|
||||
return self._result
|
||||
|
||||
def run(self, client):
|
||||
|
Loading…
Reference in New Issue
Block a user