Browse Source

Doc'd a precise exception type in Paginator.page() docs.

Sih Sîng-hông薛丞宏 3 years ago
parent
commit
30d8932753
1 changed files with 1 additions and 1 deletions
  1. 1 1
      docs/ref/paginator.txt

+ 1 - 1
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)