-
-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hide implementation-detail nursery of start when using run(..., stric…
…t_exception_groups=True)
- Loading branch information
1 parent
29ccdf1
commit 05f230a
Showing
2 changed files
with
9 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
With ``strict_exception_groups=True``, when you ran a function in a nursery which raised an exception before calling ``task_status.started()``, it previously got wrapped twice over in ``ExceptionGroup`` in some cases. It no longer does that, and also won't wrap any ``ExceptionGroup`` raised by the function itself. | ||
When a starting function raises before calling :func:`trio.TaskStatus.started`, | ||
:func:`trio.Nursery.start` will no longer wrap the exception in an undocumented | ||
``ExceptionGroup``. Previously, an ``ExceptionGroup`` was added when using | ||
``trio.run(..., strict_exception_groups=True)``. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters