1
0
mirror of https://github.com/django/django.git synced 2025-10-23 21:59:11 +00:00

Use "catch" instead of "trap" for exceptions.

This is the idiomatic word in the Python world.
This commit is contained in:
Aymeric Augustin
2014-09-08 21:06:13 +02:00
parent d4467ede77
commit aa399f6b8b
2 changed files with 4 additions and 4 deletions

View File

@@ -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