aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/message.py
diff options
context:
space:
mode:
authorGravatar Patrick Totzke <patricktotzke@gmail.com>2011-12-05 20:45:27 +0000
committerGravatar Sebastian Spaeth <Sebastian@SSpaeth.de>2011-12-06 13:28:39 +0100
commit672b6337b4adc5dda6070210ab30895075f7cf21 (patch)
tree4dd688ff8284e67e3af899824a840fad830afdae /bindings/python/notmuch/message.py
parentffe3097e58220d96c7a18b1b6062330551378b82 (diff)
errors='ignore' when decode to unicode
Diffstat (limited to 'bindings/python/notmuch/message.py')
-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 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