From 5802f5d6269172222a6fccf5908eae833014917b Mon Sep 17 00:00:00 2001 From: Michael J Gruber Date: Tue, 4 Mar 2025 13:39:43 +0100 Subject: [PATCH] bindings/python-cffi: fix docstring for message.header() The cffi bindings raise a LookupError in case a header is not present. Adjust the docstring to say so. The legacy bindings behaved differently, and this is one of the things to be aware of when migrating to the cffi bindings. --- bindings/python-cffi/notmuch2/_message.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bindings/python-cffi/notmuch2/_message.py b/bindings/python-cffi/notmuch2/_message.py index f4c7ef02..7bd20331 100644 --- a/bindings/python-cffi/notmuch2/_message.py +++ b/bindings/python-cffi/notmuch2/_message.py @@ -240,8 +240,7 @@ class Message(base.NotmuchObject): :param header: Case-insensitive header name to retrieve. :type header: str or bytes - :returns: The header value, an empty string if the header is - not present. + :returns: The header value. :rtype: str :raises LookupError: if the header is not present. -- 2.45.2