summaryrefslogtreecommitdiff
path: root/docs/ref/utils.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/ref/utils.txt')
-rw-r--r--docs/ref/utils.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/ref/utils.txt b/docs/ref/utils.txt
index a493ec9dbf..3806581811 100644
--- a/docs/ref/utils.txt
+++ b/docs/ref/utils.txt
@@ -1108,7 +1108,7 @@ For a complete discussion on the usage of the following see the
``'es-ar'`` isn't.
``lang_code`` has a maximum accepted length of 500 characters. A
- :exc:`ValueError` is raised if ``lang_code`` exceeds this limit and
+ :exc:`LookupError` is raised if ``lang_code`` exceeds this limit and
``strict`` is ``True``, or if there is no generic variant and ``strict``
is ``False``.
@@ -1120,10 +1120,10 @@ For a complete discussion on the usage of the following see the
Raises :exc:`LookupError` if nothing is found.
- .. versionchanged:: 4.2.14
+ .. versionchanged:: 4.2.15
In older versions, ``lang_code`` values over 500 characters were
- processed without raising a :exc:`ValueError`.
+ processed without raising a :exc:`LookupError`.
.. function:: to_locale(language)