Skip to content

Commit 25d5142

Browse files
committed
Try documenting the exception.
1 parent aa22b55 commit 25d5142

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Doc/library/importlib.metadata.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ You can also get a :ref:`distribution's version number <version>`, list its
105105
current Python environment.
106106

107107

108+
.. exception:: MetadataNotFound
109+
110+
Subclass of :class:`FileNotFoundError` raised when attempting to load metadata
111+
from a distribution folder that is empty or otherwise does not contain a
112+
metadata file.
113+
114+
108115
Functional API
109116
==============
110117

0 commit comments

Comments
 (0)