mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
python: fix unchecked None access in get_property
This commit is contained in:
parent
2fd4e76006
commit
5ae8ae13ba
1 changed files with 1 additions and 1 deletions
|
@ -482,7 +482,7 @@ class Message(Python3StringMixIn):
|
|||
if status != 0:
|
||||
raise NotmuchError(status)
|
||||
|
||||
return value.value.decode('utf-8')
|
||||
return value.value.decode('utf-8') if value is not None else None
|
||||
|
||||
def get_properties(self, prop="", exact=False):
|
||||
""" Get the properties of the message, returning a generator of
|
||||
|
|
Loading…
Reference in a new issue