File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -413,12 +413,14 @@ clauses.
413
413
--------------------------
414
414
415
415
If :keyword: `!finally ` is present, it specifies a 'cleanup' handler. The
416
- :keyword: `try ` clause is executed, including any :keyword: `except ` and
417
- :keyword: `else ` clauses. If an exception occurs in any of the clauses and is
418
- not handled, the exception is temporarily saved. The :keyword: `!finally ` clause
419
- is executed. If there is a saved exception it is re-raised at the end of the
420
- :keyword: `!finally ` clause. If the :keyword: `!finally ` clause raises another
421
- exception, the saved exception is set as the context of the new exception.
416
+ :keyword: `try ` clause is executed, including any :keyword: `except `
417
+ and :keyword: `else <except_else> ` clauses.
418
+ If an exception occurs in any of the clauses and is not handled,
419
+ the exception is temporarily saved.
420
+ The :keyword: `!finally ` clause is executed. If there is a saved exception
421
+ it is re-raised at the end of the :keyword: `!finally ` clause.
422
+ If the :keyword: `!finally ` clause raises another exception, the saved exception
423
+ is set as the context of the new exception.
422
424
If the :keyword: `!finally ` clause executes a :keyword: `return `, :keyword: `break `
423
425
or :keyword: `continue ` statement, the saved exception is discarded::
424
426
You can’t perform that action at this time.
0 commit comments