X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fmessages.py;h=aee4a773b5666253b2b33fe4eed6d62529d64f06;hb=8dc8495010057202b725ac029831c03f4e3ab6bd;hp=59ef40afee1ea2103f8273492c57b5debb4c9479;hpb=05c3e83bd272635ecc5e86d767250de1eb680a09;p=obsolete%2Fnotmuch-old diff --git a/bindings/python/notmuch/messages.py b/bindings/python/notmuch/messages.py index 59ef40af..aee4a773 100644 --- a/bindings/python/notmuch/messages.py +++ b/bindings/python/notmuch/messages.py @@ -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)