X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdatabase.py;h=525f7c9a0ca9d0b2a933faa26185e3671e736e8f;hb=162687a99e412098729d639ed7bc27f01372cb84;hp=0ac8b06a35f15c1965e3cf1e8d6c1bab7a3909c3;hpb=1f08664a6b8f7cba63f63855833f877b66bbbe05;p=notmuch diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 0ac8b06a..525f7c9a 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.")