Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Add blurb
  • Loading branch information
jaraco committed Mar 20, 2026
commit 8b81efd752fc6741a4627b182c9c61e1366ba7a3
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
In importlib.metadata, when a distribution file is corrupt and there is no
metadata file, calls to ``Distribution.metadata()`` (including implicit
calls from other properties like ``.name`` and ``.requires``) will now raise
a ``MetadataNotFound`` Exception. This allows callers to distinguish between
missing metadata and a degenerate (empty) metadata. Previously, if the file
was missing, an empty ``PackageMetadata`` would be returned and would be
indistinguishable from the presence of an empty file.
Loading