Skip to content

Commit 8b81efd

Browse files
committed
Add blurb
1 parent 12bffff commit 8b81efd

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
In importlib.metadata, when a distribution file is corrupt and there is no
2+
metadata file, calls to ``Distribution.metadata()`` (including implicit
3+
calls from other properties like ``.name`` and ``.requires``) will now raise
4+
a ``MetadataNotFound`` Exception. This allows callers to distinguish between
5+
missing metadata and a degenerate (empty) metadata. Previously, if the file
6+
was missing, an empty ``PackageMetadata`` would be returned and would be
7+
indistinguishable from the presence of an empty file.

0 commit comments

Comments
 (0)