aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/thread.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/thread.py
parentffe3097e58220d96c7a18b1b6062330551378b82 (diff)
errors='ignore' when decode to unicode
Diffstat (limited to 'bindings/python/notmuch/thread.py')
-rw-r--r--bindings/python/notmuch/thread.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/python/notmuch/thread.py b/bindings/python/notmuch/thread.py
index 435cbe24..5058846d 100644
--- a/bindings/python/notmuch/thread.py
+++ b/bindings/python/notmuch/thread.py
@@ -325,7 +325,7 @@ class Thread(object):
authors = Thread._get_authors(self._thread)
if authors is None:
return None
- return authors.decode('UTF-8')
+ return authors.decode('UTF-8', errors='ignore')
def get_subject(self):
"""Returns the Subject of 'thread'
@@ -338,7 +338,7 @@ class Thread(object):
subject = Thread._get_subject(self._thread)
if subject is None:
return None
- return subject.decode('UTF-8')
+ return subject.decode('UTF-8', errors='ignore')
def get_newest_date(self):
"""Returns time_t of the newest message date