summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSih Sîng-hông薛丞宏 <ihcaoe@gmail.com>2021-10-12 16:56:30 +0800
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2021-10-13 09:13:39 +0200
commit3e27ac131eaca1628cd6fa4a401e097b43aed143 (patch)
tree391356b8d14345029616b7b5122adf5bbc1299d8 /docs
parente8d8ee4a48d83c9a159781f50bffc3e559a61188 (diff)
[4.0.x] Doc'd a precise exception type in Paginator.page() docs.
Backport of 30d8932753cd0e414469f8da7ebe21e963737273 from main
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/paginator.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/ref/paginator.txt b/docs/ref/paginator.txt
index 001fd0217d..ade1739065 100644
--- a/docs/ref/paginator.txt
+++ b/docs/ref/paginator.txt
@@ -75,7 +75,7 @@ Methods
Returns a :class:`Page` object with the given 1-based index. Raises
:exc:`PageNotAnInteger` if the ``number`` cannot be converted to an integer
- by calling ``int()``. Raises :exc:`InvalidPage` if the given page number
+ by calling ``int()``. Raises :exc:`EmptyPage` if the given page number
doesn't exist.
.. method:: Paginator.get_elided_page_range(number, *, on_each_side=3, on_ends=2)