]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/thread.py
python: add missing conversions from and to utf-8
[notmuch] / bindings / python / notmuch / thread.py
index 7393097bf326c9246e3fcb9aff5b80d2aebc8bc4..03e472ddc8984ae98abf8d92a077c37c5fe481db 100644 (file)
@@ -246,7 +246,7 @@ class Thread(object):
         """
         if self._thread is None:
             raise NotmuchError(STATUS.NOT_INITIALIZED)
-        return Thread._get_thread_id(self._thread)
+        return Thread._get_thread_id(self._thread).decode('utf-8', errors='ignore')
 
     _get_total_messages = nmlib.notmuch_thread_get_total_messages
     _get_total_messages.argtypes = [NotmuchThreadP]