From 7ce1c6fb579a01bb184224a10019039fde9c8eaf Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sun, 11 Jun 2017 13:49:18 +0000 Subject: bpo-30508: Don't log exceptions if Task/Future "cancel()" method called (#2050) --- Lib/asyncio/tasks.py | 1 + 1 file changed, 1 insertion(+) (limited to 'Lib/asyncio/tasks.py') diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index e4533000e7..575d205404 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py @@ -144,6 +144,7 @@ class Task(futures.Future): terminates with a CancelledError exception (even if cancel() was not called). """ + self._log_traceback = False if self.done(): return False if self._fut_waiter is not None: -- cgit v1.2.1