aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/notmuch/database.py
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2012-05-17 17:15:24 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2012-05-17 17:15:49 +0200
commit8dc8495010057202b725ac029831c03f4e3ab6bd (patch)
tree741919e07596d8515ff89edf3923950c451e6c22 /bindings/python/notmuch/database.py
parent05c3e83bd272635ecc5e86d767250de1eb680a09 (diff)
python: Fix the remaining broken NULL pointer tests
Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
Diffstat (limited to 'bindings/python/notmuch/database.py')
-rw-r--r--bindings/python/notmuch/database.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py
index fb4c929..8f1b37f 100644
--- a/bindings/python/notmuch/database.py
+++ b/bindings/python/notmuch/database.py
@@ -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)