commit | 15f0fc571c1fbc84b6b74dfeb373ca3d35e4c5d7 | [log] [tgz] |
---|---|---|
author | Julien Palard <julien@palard.fr> | Thu Jul 08 09:31:28 2021 +0200 |
committer | GitHub <noreply@github.com> | Thu Jul 08 09:31:28 2021 +0200 |
tree | 49de61edcabba21bc64eec57ac75c6286f1a32b2 | |
parent | 58248d94379b202ccce3e45b1d1830ca47683273 [diff] |
Doc: Fix wrong exception used in example. (GH-26572)
diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 44ec3cc..107578f 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst
@@ -763,7 +763,7 @@ try: result = future.result(timeout) - except asyncio.TimeoutError: + except concurrent.futures.TimeoutError: print('The coroutine took too long, cancelling the task...') future.cancel() except Exception as exc: