diff options
| author | Michael J Gruber <git@grubix.eu> | 2025-03-04 13:39:43 +0100 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2025-03-13 21:18:15 -0300 |
| commit | 5802f5d6269172222a6fccf5908eae833014917b (patch) | |
| tree | 9dc06f975cc93453097fe7bd927accc8642bd63b /bindings | |
| parent | 537d225e2fd572fb892ccf777b7343496b6dad84 (diff) | |
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.
Diffstat (limited to 'bindings')
| -rw-r--r-- | bindings/python-cffi/notmuch2/_message.py | 3 |
1 files changed, 1 insertions, 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. |
