diff --git a/tests/Promise.py b/tests/Promise.py index ca8e2813..d5fe4dfe 100644 --- a/tests/Promise.py +++ b/tests/Promise.py @@ -33,6 +33,6 @@ class Promise(object): def set_exception(self, valueOrType, val=None, tb=None): if val is None: - self._queue.put((PromiseResultType.Exception, val)) + self._queue.put((PromiseResultType.Exception, valueOrType)) else: self._queue.put((PromiseResultType.Traceback, (valueOrType, val, tb)))