commit | 176f2ebdad93f20876c08efabd364a0e6c86de14 | [log] [tgz] |
---|---|---|
author | Yury Selivanov <yury@magic.io> | Sun Jun 11 14:00:14 2017 +0000 |
committer | GitHub <noreply@github.com> | Sun Jun 11 14:00:14 2017 +0000 |
tree | 63eaa99f8e662418e60d07fec138f33c3bd504a6 | |
parent | 59422a29ee3a95866c4f7e037bdfffd5768afddd [diff] [blame] |
bpo-30508: Don't log exceptions if Task/Future "cancel()" method was called. (#2109)
diff --git a/Lib/asyncio/tasks.py b/Lib/asyncio/tasks.py index d7867d1..9fe2a2f 100644 --- a/Lib/asyncio/tasks.py +++ b/Lib/asyncio/tasks.py
@@ -148,6 +148,7 @@ 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: