-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[core] In Generator, distinguish value yields and exceptions not by t…
…ype but by control flow. (#43413) Previously we use isinstance(output_or_exception, Exception) to find out if this is a raised Exception or a yielded value. This missed one case: yielded Exception. Though this is not likely to happen, it should be fixed for the sake of completeness. Signed-off-by: Ruiyang Wang <rywang014@gmail.com>
- Loading branch information
Showing
3 changed files
with
175 additions
and
85 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
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
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