]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/tag.py
python: fix error handling
[notmuch] / bindings / python / notmuch / tag.py
index ceb724410606a729bd042a394b2937816afc30ed..71d81dd6bc46bdfd5bb3cffddfbea084b3d7b93b 100644 (file)
@@ -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