diff options
| author | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-22 11:19:51 +0100 |
|---|---|---|
| committer | Sebastian Spaeth <sebastian@sspaeth.de> | 2010-03-22 11:19:51 +0100 |
| commit | 63c5a6d77d2b51104305e91676720099f4667e92 (patch) | |
| tree | 3158e3b4a13078324061a101e5e19a9e69225802 | |
| parent | c3239d3eb47eeaa1ed96a3169c0effc4e68185de (diff) | |
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.
| -rw-r--r-- | cnotmuch/database.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() + "'" |
