X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ftag.py;fp=bindings%2Fpython%2Fnotmuch%2Ftag.py;h=71d81dd6bc46bdfd5bb3cffddfbea084b3d7b93b;hp=ceb724410606a729bd042a394b2937816afc30ed;hb=8015cbff263606f009b5750d23b28ee332c25db8;hpb=871fc32837d1e734895bef5f89040b5b874ae473 diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index ceb72441..71d81dd6 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -70,7 +70,7 @@ class Tags(Python3StringMixIn): :TODO: Make the iterator optionally work more than once by cache the tags in the Python object(?) """ - if tags_p is None: + if not tags_p: raise NotmuchError(STATUS.NULL_POINTER) self._tags = tags_p