]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/tag.py
python: fix error handling
[notmuch] / bindings / python / notmuch / tag.py
index 2fb7d3287a8413e295b1e9b5b2840d9d06bdb476..4881db9fa2cdae0220f0f28398e14b69c334b7c1 100644 (file)
@@ -70,7 +70,7 @@ class Tags(object):
         :TODO: Make the iterator optionally work more than once by
                cache the tags in the Python 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
             raise NotmuchError(STATUS.NULL_POINTER)
 
         self._tags = tags_p