Skip to content

Commit 5eacdf6

Browse files
committed
Exceptions
1 parent 4159345 commit 5eacdf6

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
@@ -1372,7 +1372,7 @@ except (<exception>, ...):
13721372
except (<exception>, ...) as <name>:
13731373
```
13741374
* **Also catches subclasses of the exception.**
1375-
* **Use `'traceback.print_exc()'` to print the error message.**
1375+
* **Use `'traceback.print_exc()'` to print the error message to stderr.**
13761376

13771377
### Raising Exceptions
13781378
```python

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@
12951295

12961296
<ul>
12971297
<li><strong>Also catches subclasses of the exception.</strong></li>
1298-
<li><strong>Use <code class="python hljs"><span class="hljs-string">'traceback.print_exc()'</span></code> to print the error message.</strong></li>
1298+
<li><strong>Use <code class="python hljs"><span class="hljs-string">'traceback.print_exc()'</span></code> to print the error message to stderr.</strong></li>
12991299
</ul>
13001300
<div><h3 id="raisingexceptions">Raising Exceptions</h3><pre><code class="python language-python hljs"><span class="hljs-keyword">raise</span> &lt;exception&gt;
13011301
<span class="hljs-keyword">raise</span> &lt;exception&gt;()

0 commit comments

Comments
 (0)