Skip to content

Commit

Permalink
PEP-654: fix bug in leaf_generator example (#1910)
Browse files Browse the repository at this point in the history
  • Loading branch information
iritkatriel authored Apr 4, 2021
1 parent 9fadf9c commit 6d94d73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pep-0654.rst
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ recursively, as follows:
tbs = []
tbs.append(exc.__traceback__)
if isinstance(exc, ExceptionGroup):
if isinstance(exc, BaseExceptionGroup):
for e in exc.exceptions:
yield from leaf_generator(e, tbs)
else:
Expand Down

0 comments on commit 6d94d73

Please sign in to comment.