X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Ftag.py;h=4881db9fa2cdae0220f0f28398e14b69c334b7c1;hp=2fb7d3287a8413e295b1e9b5b2840d9d06bdb476;hb=221c7e0b38177f5f1dbf0561580c15e8aaa49004;hpb=ffce9b7c25b9b44ec026b67d96e44cae09c99efe diff --git a/bindings/python/notmuch/tag.py b/bindings/python/notmuch/tag.py index 2fb7d328..4881db9f 100644 --- a/bindings/python/notmuch/tag.py +++ b/bindings/python/notmuch/tag.py @@ -70,7 +70,7 @@ class Tags(object): :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