summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--asyncio/base_events.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/asyncio/base_events.py b/asyncio/base_events.py
index 1c51a7c..e40d3ad 100644
--- a/asyncio/base_events.py
+++ b/asyncio/base_events.py
@@ -956,7 +956,8 @@ class BaseEventLoop(events.AbstractEventLoop):
else:
exc_info = False
- if (self._current_handle is not None
+ if ('source_traceback' not in context
+ and self._current_handle is not None
and self._current_handle._source_traceback):
context['handle_traceback'] = self._current_handle._source_traceback