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:
Paul Belanger 2017-05-09 11:19:04 -04:00
parent f6a0e4fc4f
commit 927c79c4a2
No known key found for this signature in database
GPG Key ID: 611A80832067AF38

View File

@ -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):