]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/database.py
python: Fix the remaining broken NULL pointer tests
[notmuch] / bindings / python / notmuch / database.py
index fb4c92931a36eaf7d19cd13143ea9409fc5a4776..8f1b37f7b61a7c76dec5bae1800b2b64f482746e 100644 (file)
@@ -558,7 +558,7 @@ class Database(object):
         """
         self._assert_db_is_initialized()
         tags_p = Database._get_all_tags(self._db)
-        if tags_p == None:
+        if not tags_p:
             raise NullPointerError()
         return Tags(tags_p, self)