mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
Fix typo in previous doc commit.
This commit is contained in:
parent
a9b14a63dc
commit
a1f74816f5
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ Because ``except:`` catches *all* exceptions, including :exc:`SystemExit`,
|
||||||
should not normally be caught by user code), using a bare ``except:`` is almost
|
should not normally be caught by user code), using a bare ``except:`` is almost
|
||||||
never a good idea. In situations where you need to catch all "normal" errors,
|
never a good idea. In situations where you need to catch all "normal" errors,
|
||||||
such as in a framework that runs callbacks, you can catch the base class for
|
such as in a framework that runs callbacks, you can catch the base class for
|
||||||
all normal exceptions, :exc:`Exception`. Unfortunately in Python2 it is
|
all normal exceptions, :exc:`Exception`. Unfortunately in Python 2.x it is
|
||||||
possible for third-party code to raise exceptions that do not inherit from
|
possible for third-party code to raise exceptions that do not inherit from
|
||||||
:exc:`Exception`, so in Python 2.x there are some cases where you may have to
|
:exc:`Exception`, so in Python 2.x there are some cases where you may have to
|
||||||
use a bare ``except:`` and manually re-raise the exceptions you don't want
|
use a bare ``except:`` and manually re-raise the exceptions you don't want
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue