]> git.notmuchmail.org Git - notmuch/blobdiff - bindings/python/notmuch/messages.py
python: Fix the remaining broken NULL pointer tests
[notmuch] / bindings / python / notmuch / messages.py
index 59ef40afee1ea2103f8273492c57b5debb4c9479..aee4a773b5666253b2b33fe4eed6d62529d64f06 100644 (file)
@@ -142,7 +142,7 @@ class Messages(object):
         #reset _msgs as we iterated over it and can do so only once
         self._msgs = None
 
-        if tags_p == None:
+        if not tags_p:
             raise NullPointerError()
         return Tags(tags_p, self)