Skip to content

Commit

Permalink
Update changelog.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 17, 2022
1 parent 19fa35a commit 612603c
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions CHANGES.rst
@@ -1,3 +1,18 @@
v6.0.0
======

* #371: When a key is missing from metadata, raise a ``KeyError``
instead of returning ``None``, matching the usual expectation for
mapping objects and also the protocol definition.

Projects should update to expect the ``KeyError`` or wrap the call
to replace a ``KeyError`` with a ``None`` return, e.g.::

try:
value = metadata(pkg)['Name']
except KeyError:
value = None

v5.1.0
======

Expand Down

0 comments on commit 612603c

Please sign in to comment.