aboutsummaryrefslogtreecommitdiffhomepage
path: root/bindings/python/notmuch/query.py
diff options
context:
space:
mode:
Diffstat (limited to 'bindings/python/notmuch/query.py')
-rw-r--r--bindings/python/notmuch/query.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bindings/python/notmuch/query.py b/bindings/python/notmuch/query.py
index 4abba5bd..b11a399d 100644
--- a/bindings/python/notmuch/query.py
+++ b/bindings/python/notmuch/query.py
@@ -100,7 +100,7 @@ class Query(object):
# create reference to parent db to keep it alive
self._db = db
# create query, return None if too little mem available
- query_p = Query._create(db.db_p, _str(querystr))
+ query_p = Query._create(db._db, _str(querystr))
if not query_p:
raise NullPointerError
self._query = query_p