Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 316e040

Browse files
committed
Exceptions
1 parent 4327856 commit 316e040

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ else:
13561356
finally:
13571357
<code_3>
13581358
```
1359-
* **Code inside the `'else'` block will only be executed if `'try'` block had no exception.**
1359+
* **Code inside the `'else'` block will only be executed if `'try'` block had no exceptions.**
13601360
* **Code inside the `'finally'` block will always be executed.**
13611361

13621362
### Catching Exceptions

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@
13121312
</code></pre></div>
13131313

13141314
<ul>
1315-
<li><strong>Code inside the <code class="python hljs"><span class="hljs-string">'else'</span></code> block will only be executed if <code class="python hljs"><span class="hljs-string">'try'</span></code> block had no exception.</strong></li>
1315+
<li><strong>Code inside the <code class="python hljs"><span class="hljs-string">'else'</span></code> block will only be executed if <code class="python hljs"><span class="hljs-string">'try'</span></code> block had no exceptions.</strong></li>
13161316
<li><strong>Code inside the <code class="python hljs"><span class="hljs-string">'finally'</span></code> block will always be executed.</strong></li>
13171317
</ul>
13181318
<div><h3 id="catchingexceptions">Catching Exceptions</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">except</span> &lt;exception&gt;:

0 commit comments

Comments
 (0)