From: Vincent Breitmoser Date: Mon, 17 Sep 2018 12:49:32 +0000 (+0200) Subject: python: fix unchecked None access in get_property X-Git-Tag: debian/0.28_rc0-1~7 X-Git-Url: https://git.notmuchmail.org/git?a=commitdiff_plain;h=5ae8ae13ba9190fc9915dced0be6cfb382bba308;p=notmuch python: fix unchecked None access in get_property --- 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