X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython-cffi%2Fnotmuch2%2F_database.py;fp=bindings%2Fpython-cffi%2Fnotmuch2%2F_database.py;h=868f4408cb18f2b00196d6314e1d4f3fe34ade5d;hp=5ab0f20a72644dfddb56b5d569292bab3f695258;hb=f01f6405c962e27de52eb777ac3f19ee655b71ba;hpb=27020503402af546d9d3017bb4a6346497c85d09 diff --git a/bindings/python-cffi/notmuch2/_database.py b/bindings/python-cffi/notmuch2/_database.py index 5ab0f20a..868f4408 100644 --- a/bindings/python-cffi/notmuch2/_database.py +++ b/bindings/python-cffi/notmuch2/_database.py @@ -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)