mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
python/notmuch2: fix exclude tag handling
A typo in Database._create_query lost the exclude_tag names during the string to utf-8 conversion. Amended by DB: fixed patch format and updated commit message.
This commit is contained in:
parent
2702050340
commit
f01f6405c9
1 changed files with 1 additions and 1 deletions
|
@ -578,7 +578,7 @@ class Database(base.NotmuchObject):
|
|||
if exclude_tags is not None:
|
||||
for tag in exclude_tags:
|
||||
if isinstance(tag, str):
|
||||
tag = str.encode('utf-8')
|
||||
tag = tag.encode('utf-8')
|
||||
capi.lib.notmuch_query_add_tag_exclude(query_p, tag)
|
||||
return querymod.Query(self, query_p)
|
||||
|
||||
|
|
Loading…
Reference in a new issue