diff options
author | Carol Willing <carolcode@willingconsulting.com> | 2018-09-13 23:14:41 (GMT) |
---|---|---|
committer | Yury Selivanov <yury@magic.io> | 2018-09-13 23:14:41 (GMT) |
commit | a3c8ba723530ceb3328d184d3e0020534b522778 (patch) | |
tree | f663ea40280e380025065208ad9631932c053038 /Doc/library/asyncio-exceptions.rst | |
parent | 01e0afa994c2e840f85e2de103e72a2c0ddf1b1f (diff) | |
download | cpython-a3c8ba723530ceb3328d184d3e0020534b522778.zip cpython-a3c8ba723530ceb3328d184d3e0020534b522778.tar.gz cpython-a3c8ba723530ceb3328d184d3e0020534b522778.tar.bz2 |
polish exceptions and platforms (GH-9272)
Diffstat (limited to 'Doc/library/asyncio-exceptions.rst')
-rw-r--r-- | Doc/library/asyncio-exceptions.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/asyncio-exceptions.rst b/Doc/library/asyncio-exceptions.rst index bcd3599..7f3ed85 100644 --- a/Doc/library/asyncio-exceptions.rst +++ b/Doc/library/asyncio-exceptions.rst @@ -19,11 +19,12 @@ Exceptions The operation has been cancelled. - This exception can be caught to perform custom operations on + This exception can be caught to perform custom operations when asyncio Tasks are cancelled. In almost all situations the exception must always be re-raised. .. note:: + This exception is a subclass of :exc:`Exception`, so it can be accidentally suppressed by ``try..except`` block:: @@ -54,7 +55,7 @@ Exceptions .. exception:: SendfileNotAvailableError - The "sendfile" syscall for is not available for the given + The "sendfile" syscall is not available for the given socket or file type. A subclass of :exc:`RuntimeError`. |