Skip to content

Commit 1dbae0d

Browse files
authored
Update docs/rules.rst
1 parent 1a35dae commit 1dbae0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/rules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ _`ASYNC122`: delayed-entry-of-relative-cancelscope
9090
:func:`trio.move_on_after`, :func:`trio.fail_after`, :func:`anyio.move_on_after` and :func:`anyio.fail_after` behaves unintuitively if initialization and entry are separated, with the timeout starting on initialization. Trio>=0.27 changes this behaviour, so if you don't support older versions you should disable this check. See `Trio issue #2512 <https://github.com/python-trio/trio/issues/2512>`_.
9191

9292
_`ASYNC123`: bad-exception-group-flattening
93-
Raising one of the contained exceptions will mutate it, replacing the original ``.__context__`` with the group, and erasing the ``.__traceback__``.
93+
Raising one of the exceptions contained in an exception group will mutate it, replacing the original ``.__context__`` with the group, and erasing the ``.__traceback__``.
9494
Dropping this information makes diagnosing errors much more difficult.
9595
We recommend ``raise SomeNewError(...) from group`` if possible; or consider using `copy.copy` to shallow-copy the exception before re-raising (for copyable types), or re-raising the error from outside the `except` block.
9696

0 commit comments

Comments
 (0)