aboutsummaryrefslogtreecommitdiff
path: root/bindings/python
diff options
context:
space:
mode:
authorVincent Breitmoser <look@my.amazin.horse>2018-09-17 14:49:32 +0200
committerDavid Bremner <david@tethera.net>2018-09-19 21:56:08 -0300
commit5ae8ae13ba9190fc9915dced0be6cfb382bba308 (patch)
tree0b3e0ebf5b4e10be81aff49449a6660b22a619e9 /bindings/python
parent2fd4e76006a44e11659d7723a75c6ba05c3c85b5 (diff)
python: fix unchecked None access in get_property
Diffstat (limited to 'bindings/python')
-rw-r--r--bindings/python/notmuch/message.py2
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