From 1727eb71baae5bb1c9b8aed670f86bfe47fae113 Mon Sep 17 00:00:00 2001 From: Elephant Liu Date: Thu, 9 Jan 2020 11:07:56 +0800 Subject: [PATCH] read traceback from target promise --- promise/promise_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/promise/promise_list.py b/promise/promise_list.py index de142f9..eeba766 100644 --- a/promise/promise_list.py +++ b/promise/promise_list.py @@ -130,7 +130,7 @@ def _promise_rejected(self, reason, promise): # assert not self.is_resolved # assert isinstance(self._values, Iterable) self._total_resolved += 1 - self._reject(reason, traceback=promise._traceback) + self._reject(reason, traceback=promise._target()._traceback) return True @property