From ab116d8f97c8e3eb1d762bb26cec248e11f6963b Mon Sep 17 00:00:00 2001 From: nanoric Date: Wed, 10 Oct 2018 22:09:27 -0400 Subject: [PATCH] =?UTF-8?q?[Fix]=20=E4=BF=AE=E5=A4=8DPromise=E6=8A=9B?= =?UTF-8?q?=E5=87=BA=E5=8D=95=E4=B8=AA=E5=BC=82=E5=B8=B8=E6=97=B6get?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=8E=B7=E5=8F=96=E5=88=B0=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E5=BC=82=E5=B8=B8=E7=9A=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/Promise.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)))