8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a1026d commit ed491d9Copy full SHA for ed491d9
Doc/tutorial/errors.rst
@@ -535,11 +535,20 @@ of a certain type while letting all other exceptions propagate to
535
other clauses and eventually to be reraised. ::
536
537
>>> def f():
538
- ... raise ExceptionGroup("group1",
539
- ... [OSError(1),
540
- ... SystemError(2),
541
- ... ExceptionGroup("group2",
542
- ... [OSError(3), RecursionError(4)])])
+ ... raise ExceptionGroup(
+ ... "group1",
+ ... [
+ ... OSError(1),
+ ... SystemError(2),
543
+ ... ExceptionGroup(
544
+ ... "group2",
545
546
+ ... OSError(3),
547
+ ... RecursionError(4)
548
+ ... ]
549
+ ... )
550
551
552
...
553
>>> try:
554
... f()
0 commit comments