summaryrefslogtreecommitdiffstats
path: root/Doc/library/exceptions.rst
diff options
context:
space:
mode:
authorNikita Sobolev <mail@sobolevn.me>2023-10-01 17:18:19 (GMT)
committerGitHub <noreply@github.com>2023-10-01 17:18:19 (GMT)
commit31097df611bb5c8084190202e095ae47e8b81c0f (patch)
treea3a43f7acf558e0b67066f86bfbb8fff0465087c /Doc/library/exceptions.rst
parenta431a0f988f26dae387f2a107c7e695f5dfc0096 (diff)
downloadcpython-31097df611bb5c8084190202e095ae47e8b81c0f.zip
cpython-31097df611bb5c8084190202e095ae47e8b81c0f.tar.gz
cpython-31097df611bb5c8084190202e095ae47e8b81c0f.tar.bz2
gh-101100: Fix sphinx warnings in `library/site.rst` (#110144)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Doc/library/exceptions.rst')
-rw-r--r--Doc/library/exceptions.rst14
1 files changed, 10 insertions, 4 deletions
diff --git a/Doc/library/exceptions.rst b/Doc/library/exceptions.rst
index fae0cf6..cd85df8 100644
--- a/Doc/library/exceptions.rst
+++ b/Doc/library/exceptions.rst
@@ -220,10 +220,16 @@ The following exceptions are the exceptions that are usually raised.
load a module. Also raised when the "from list" in ``from ... import``
has a name that cannot be found.
- The :attr:`name` and :attr:`path` attributes can be set using keyword-only
- arguments to the constructor. When set they represent the name of the module
- that was attempted to be imported and the path to any file which triggered
- the exception, respectively.
+ The optional *name* and *path* keyword-only arguments
+ set the corresponding attributes:
+
+ .. attribute:: name
+
+ The name of the module that was attempted to be imported.
+
+ .. attribute:: path
+
+ The path to any file which triggered the exception.
.. versionchanged:: 3.3
Added the :attr:`name` and :attr:`path` attributes.