From 63c5a6d77d2b51104305e91676720099f4667e92 Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Mon, 22 Mar 2010 11:19:51 +0100 Subject: [PATCH] Fix Database().create_query() to actually initialize the Query with the correct object. We were passing the internal pointer to the notmuch_database_t object to Query(), but it should be initialized with the Database() object itself. This rightfully raised an exception. Yay, for thorough sanity checking. --- cnotmuch/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cnotmuch/database.py b/cnotmuch/database.py index b759391a..dde7da16 100644 --- a/cnotmuch/database.py +++ b/cnotmuch/database.py @@ -314,7 +314,7 @@ class Database(object): # Raise a NotmuchError if not initialized self._verify_initialized_db() - return Query(self._db, querystring) + return Query(self, querystring) def __repr__(self): return "'Notmuch DB " + self.get_path() + "'" -- 2.26.2