summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorPrince Roshan <princekrroshan01@gmail.com>2023-05-20 22:26:49 (GMT)
committerGitHub <noreply@github.com>2023-05-20 22:26:49 (GMT)
commit12f1581b0c43f40a792c188e17d2dea2357debb3 (patch)
tree8fe49fd21b2b75f5fce951216c25ad42fafebd18 /Doc
parent27a68be77f7a5bfb7c4b97438571b4fcf5aae8b4 (diff)
downloadcpython-12f1581b0c43f40a792c188e17d2dea2357debb3.zip
cpython-12f1581b0c43f40a792c188e17d2dea2357debb3.tar.gz
cpython-12f1581b0c43f40a792c188e17d2dea2357debb3.tar.bz2
gh-103606: raise RuntimeError if config file is invalid or empty (#104701)
(this adjusts new code) raise RuntimeError if provided config file is invalid or empty, not ValueError.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/logging.config.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst
index 452832f..448978f 100644
--- a/Doc/library/logging.config.rst
+++ b/Doc/library/logging.config.rst
@@ -88,7 +88,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
configuration).
It will raise :exc:`FileNotFoundError` if the file
- doesn't exist and :exc:`ValueError` if the file is invalid or
+ doesn't exist and :exc:`RuntimeError` if the file is invalid or
empty.
:param fname: A filename, or a file-like object, or an instance derived
@@ -130,7 +130,7 @@ in :mod:`logging` itself) and defining handlers which are declared either in
.. versionadded:: 3.10
The *encoding* parameter is added.
- .. versionadded:: 3.12
+ .. versionchanged:: 3.12
An exception will be thrown if the provided file
doesn't exist or is invalid or empty.