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.
This commit is contained in:
Michael J Gruber 2025-03-04 13:39:43 +01:00 committed by David Bremner
parent 537d225e2f
commit 5802f5d626

View file

@ -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.