From 4aba1021fd5e6209df9a675f3b80724c2865859c Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Wed, 10 Jan 2018 20:07:23 +0000 Subject: [PATCH] Do not unpack exc_info. --- ptvsd/futures.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ptvsd/futures.py b/ptvsd/futures.py index 6ecadf52..6c41ca5c 100644 --- a/ptvsd/futures.py +++ b/ptvsd/futures.py @@ -29,9 +29,7 @@ class Future(object): with self._lock: if self._done and self._exc_info and not self._observed: print('Unobserved exception in a Future:', file=sys.__stderr__) - exctype, exc, tb = self._exc_info - traceback.print_exception(exctype, exc, tb, - file=sys.__stderr__) + traceback.print_exception(*self._exc_info, file=sys.__stderr__) def result(self): # TODO: docstring