diff options
| author | Vincent Breitmoser <look@my.amazin.horse> | 2018-09-17 14:49:32 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2018-09-19 21:56:08 -0300 |
| commit | 5ae8ae13ba9190fc9915dced0be6cfb382bba308 (patch) | |
| tree | 0b3e0ebf5b4e10be81aff49449a6660b22a619e9 | |
| parent | 2fd4e76006a44e11659d7723a75c6ba05c3c85b5 (diff) | |
python: fix unchecked None access in get_property
| -rw-r--r-- | bindings/python/notmuch/message.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index d242097a..de0fb415 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -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 |
