]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/message.py
errors='ignore' when decode to unicode
[notmuch] / bindings / python / notmuch / message.py
index a9ded8018489c082ae86888b7b3797f2f5d940b6..f95e50e284c5124d0a3e6d37bc0d942e684ccf68 100644 (file)
@@ -427,7 +427,7 @@ class Message(object):
         header = Message._get_header(self._msg, header)
         if header == None:
             raise NotmuchError(STATUS.NULL_POINTER)
-        return header.decode('UTF-8')
+        return header.decode('UTF-8', errors='ignore')
 
     def get_filename(self):
         """Returns the file path of the message file