X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessage.py;h=f95e50e284c5124d0a3e6d37bc0d942e684ccf68;hp=a9ded8018489c082ae86888b7b3797f2f5d940b6;hb=672b6337b4adc5dda6070210ab30895075f7cf21;hpb=ffe3097e58220d96c7a18b1b6062330551378b82 diff --git a/bindings/python/notmuch/message.py b/bindings/python/notmuch/message.py index a9ded801..f95e50e2 100644 --- a/bindings/python/notmuch/message.py +++ b/bindings/python/notmuch/message.py @@ -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