We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19fa35a commit 612603cCopy full SHA for 612603c
CHANGES.rst
@@ -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
16
v5.1.0
17
======
18
0 commit comments