]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/message.py
Merge tag '0.29.2'
[notmuch] / bindings / python / notmuch / message.py
index d242097a8299eff8885db7c93a64e9b3b1de8b27..6e32b5f7ada2d825d4cd6c23403f6b6b1271691f 100644 (file)
@@ -482,6 +482,8 @@ class Message(Python3StringMixIn):
         if status != 0:
             raise NotmuchError(status)
 
+        if value is None or value.value is None:
+            return None
         return value.value.decode('utf-8')
 
     def get_properties(self, prop="", exact=False):