File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1367,7 +1367,7 @@ except <exception>:
1367
1367
1368
1368
### Common Built-in Exceptions
1369
1369
```text
1370
- BaseException
1370
+ BaseException # Not meant to be extended by user-defined exceptions.
1371
1371
+-- SystemExit # Raised by the sys.exit() function.
1372
1372
+-- KeyboardInterrupt # Raised when the user hits the interrupt key.
1373
1373
+-- Exception # User-defined exceptions should be derived from this class.
Original file line number Diff line number Diff line change @@ -1258,7 +1258,7 @@ <h4 id="reraisingcaughtexception">Re-raising caught exception:</h4>
1258
1258
<span class="hljs-keyword">raise</span>
1259
1259
</code></pre>
1260
1260
<h3 id="commonbuiltinexceptions">Common Built-in Exceptions</h3>
1261
- <pre><code class="text language-text">BaseException
1261
+ <pre><code class="text language-text">BaseException # Not meant to be extended by user-defined exceptions.
1262
1262
+-- SystemExit # Raised by the sys.exit() function.
1263
1263
+-- KeyboardInterrupt # Raised when the user hits the interrupt key.
1264
1264
+-- Exception # User-defined exceptions should be derived from this class.
You can’t perform that action at this time.
0 commit comments