X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fdatabase.py;h=e18381ba3bab25368cb1a009700dd94c93973290;hp=9fb30e6355d2ca9bca4d90311d2862e9455cb771;hb=19daa117b90289d724392e04e3647ade6db4dd7b;hpb=34990908e75f73061753a7f38201a05247a207a1 diff --git a/bindings/python/notmuch/database.py b/bindings/python/notmuch/database.py index 9fb30e63..e18381ba 100644 --- a/bindings/python/notmuch/database.py +++ b/bindings/python/notmuch/database.py @@ -569,7 +569,7 @@ class Query(object): # create query, return None if too little mem available query_p = Query._create(db.db_p, _str(querystr)) if query_p is None: - NotmuchError(STATUS.NULL_POINTER) + raise NotmuchError(STATUS.NULL_POINTER) self._query = query_p def set_sort(self, sort): @@ -637,7 +637,7 @@ class Query(object): msgs_p = Query._search_messages(self._query) if msgs_p is None: - NotmuchError(STATUS.NULL_POINTER) + raise NotmuchError(STATUS.NULL_POINTER) return Messages(msgs_p, self)