diff options
| author | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2014-09-08 21:06:13 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@oscaro.com> | 2014-09-08 22:23:44 +0200 |
| commit | aa399f6b8bf55cd02f99ef3c55b61482e2f74014 (patch) | |
| tree | 5826844e8e8e5a5f253291e89bf853010db9e5c7 /docs | |
| parent | d4467ede7730e0dc7a703f6865ec9ce9c7580d5f (diff) | |
Use "catch" instead of "trap" for exceptions.
This is the idiomatic word in the Python world.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/topics/pagination.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/topics/pagination.txt b/docs/topics/pagination.txt index f3c8e35c25..6ab12b2d1b 100644 --- a/docs/topics/pagination.txt +++ b/docs/topics/pagination.txt @@ -204,8 +204,8 @@ Attributes The :meth:`Paginator.page` method raises an exception if the requested page is invalid (i.e., not an integer) or contains no objects. Generally, it's enough -to trap the ``InvalidPage`` exception, but if you'd like more granularity, you -can trap either of the following exceptions: +to catch the ``InvalidPage`` exception, but if you'd like more granularity, +you can catch either of the following exceptions: .. exception:: PageNotAnInteger |
