mirror of
https://git.notmuchmail.org/git/notmuch
synced 2025-04-22 07:10:46 +02:00
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:
parent
537d225e2f
commit
5802f5d626
1 changed files with 1 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue