aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/messages.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/notmuch/messages.py')
-rw-r--r--bindings/python/notmuch/messages.py2
1 files changed, 1 insertions, 1 deletions
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)