Re: [Patch] tag.py: Bugfix to avoid decode() on a NoneType object

Subject: Re: [Patch] tag.py: Bugfix to avoid decode() on a NoneType object

Date: Fri, 12 Aug 2011 10:14:17 +0200

To: Michael Heinrich, notmuch@notmuchmail.org

Cc:

From: Sebastian Spaeth


On Fri, 22 Jul 2011 14:11:41 +0000 (UTC), Michael Heinrich <michael@haas-heinrich.de> wrote:
> Dear all,
> 
> with current head I get following error in my python scripts when I read the
> tags of a message:
> 
>   File "/home/heinrich/.local/lib/python2.6/site-packages/notmuch/tag.py", line
> 88, in next
>     tag = Tags._get(self._tags).decode('utf-8')

Just for reference, this has been fixed in commit
94c5edd064f856a888ce29f7ac1523006b4b8fd6 on Aug 9th
using a slightly different patch of mine.

Sebastian
part-000.sig (application/pgp-signature)

Thread: