diff --git a/promise/promise.py b/promise/promise.py index ef9a45f..1ce7676 100644 --- a/promise/promise.py +++ b/promise/promise.py @@ -481,7 +481,7 @@ def resolve(value): def reject(reason, traceback=None): # type: (Exception, TracebackType) -> None - self._reject_callback(reason, synchronous, traceback) + self._reject_callback(reason, synchronous, traceback or getattr(reason, '__traceback__', None)) error = None traceback = None