mirror of
https://github.com/microsoft/debugpy.git
synced 2025-12-23 08:48:12 +00:00
Do not unpack exc_info.
This commit is contained in:
parent
3faf6c874d
commit
4aba1021fd
1 changed files with 1 additions and 3 deletions
|
|
@ -29,9 +29,7 @@ class Future(object):
|
||||||
with self._lock:
|
with self._lock:
|
||||||
if self._done and self._exc_info and not self._observed:
|
if self._done and self._exc_info and not self._observed:
|
||||||
print('Unobserved exception in a Future:', file=sys.__stderr__)
|
print('Unobserved exception in a Future:', file=sys.__stderr__)
|
||||||
exctype, exc, tb = self._exc_info
|
traceback.print_exception(*self._exc_info, file=sys.__stderr__)
|
||||||
traceback.print_exception(exctype, exc, tb,
|
|
||||||
file=sys.__stderr__)
|
|
||||||
|
|
||||||
def result(self):
|
def result(self):
|
||||||
# TODO: docstring
|
# TODO: docstring
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue