8000 Python issue #23208: Don't use the traceback of the current handle if we · python/asyncio@f1774fc · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Nov 23, 2017. It is now read-only.

Commit f1774fc

Browse files
committed
Python issue #23208: Don't use the traceback of the current handle if we
already know the traceback of the source. The handle may be more revelant, but having 3 tracebacks (handle, source, exception) becomes more difficult to read. The handle may be preferred later but it requires more work to make this choice.
1 parent 54faf33 commit f1774fc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asyncio/base_events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,8 @@ def default_exception_handler(self, context):
956956
6599 else:
957957
exc_info = False
958958

959-
if (self._current_handle is not None
959+
if ('source_traceback' not in context
960+
and self._current_handle is not None
960961
and self._current_handle._source_traceback):
961962
context['handle_traceback'] = self._current_handle._source_traceback
962963

0 commit comments

Comments
 (0)
0