X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdatabase.py;h=6edb18b69d845514dbbe5ad9e7a960e96ad4b184;hp=0958ce0ad8499f8f699391c356819b2fe14a65a7;hb=be851ad39de11f38e1cd4f7f15f1fa952232efe2;hpb=ab2f9fd828058d281480e9947ea346e382a7f3c8 diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 0958ce0a..6edb18b6 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -159,7 +159,7 @@ class Database(object): def _assert_db_is_initialized(self): """Raises :exc:`NotInitializedError` if self._db is `None`""" - if self._db is None: + if not self._db: raise NotInitializedError() def create(self, path):