diff --git a/tests/Promise.py b/tests/Promise.py index a27046cf..51aab6b6 100644 --- a/tests/Promise.py +++ b/tests/Promise.py @@ -24,7 +24,7 @@ class Promise(object): res = self._queue.get(timeout=timeout) if res[0] == PromiseResultType.Result: return res[1] - raise res[2] + raise res[1] def set_exception(self, val): self._queue.put((PromiseResultType.Exception, val))