aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/notmuch/database.py
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2012-04-30 18:52:35 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2012-04-30 19:24:34 +0200
commit162687a99e412098729d639ed7bc27f01372cb84 (patch)
tree3502c16bfc4f7e6546f4c640b6f562ca846fa5aa /bindings/python/notmuch/database.py
parent09fdf2b283938da1cded87ec8621aabe917a8fa5 (diff)
python: fix NULL pointer tests
Fix the NULL pointer tests in the destructors of all classes and Database.create. 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 0ac8b06..525f7c9 100644
--- a/bindings/python/notmuch/database.py
+++ b/bindings/python/notmuch/database.py
@@ -189,7 +189,7 @@ class Database(object):
:raises: :exc:`NotmuchError` in case of any failure
(possibly after printing an error message on stderr).
"""
- if self._db is not None:
+ if self._db:
raise NotmuchError(message="Cannot create db, this Database() "
"already has an open one.")