Skip to content

Commit 612603c

Browse files
committed
Update changelog.
1 parent 19fa35a commit 612603c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

CHANGES.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
v6.0.0
2+
======
3+
4+
* #371: When a key is missing from metadata, raise a ``KeyError``
5+
instead of returning ``None``, matching the usual expectation for
6+
mapping objects and also the protocol definition.
7+
8+
Projects should update to expect the ``KeyError`` or wrap the call
9+
to replace a ``KeyError`` with a ``None`` return, e.g.::
10+
11+
try:
12+
value = metadata(pkg)['Name']
13+
except KeyError:
14+
value = None
15+
116
v5.1.0
217
======
318

0 commit comments

Comments
 (0)