]> granicus.if.org Git - python/commitdiff
bpo-38130: Fix error in explaining when an exception is re-raised (GH-16016)
authorMohammad Dehghan <md.unicorn@gmail.com>
Thu, 26 Sep 2019 09:09:05 +0000 (12:39 +0330)
committerStéphane Wirtel <stephane@wirtel.be>
Thu, 26 Sep 2019 09:09:05 +0000 (11:09 +0200)
Co-Authored-By: Ashwin Ramaswami <aramaswamis@gmail.com>
Doc/tutorial/errors.rst

index c820e42ac471f3ac53a102dc8a88f0774513f4e5..8f86eca02483a21e1cee6912ae4ba1fb77bd3bb0 100644 (file)
@@ -390,7 +390,7 @@ example::
 
 If a :keyword:`finally` clause is present, the :keyword:`finally` clause will execute as the last task before the :keyword:`try` statement completes. The :keyword:`finally` clause runs whether or not the :keyword:`try` statement produces an exception. The following points discuss more complex cases when an exception occurs:
 
-* If an exception occurs during execution of the :keyword:`!try` clause, the exception may be handled by an :keyword:`except` clause. In all cases, the exception is re-raised after the :keyword:`!finally` clause has been executed.
+* If an exception occurs during execution of the :keyword:`!try` clause, the exception may be handled by an :keyword:`except` clause. If the exception is not handled by an :keyword:`except` clause, the exception is re-raised after the :keyword:`!finally` clause has been executed.
 
 * An exception could occur during execution of an :keyword:`!except` or :keyword:`!else` clause. Again, the exception is re-raised after the :keyword:`!finally` clause has been executed.