mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
python: Really throw an error if search_threads() fails
In case, search_threads returns an error we are supposed to throw an Exception. But we did not "raise" it, this was an oversight and this commit fixes it. There is still the problem that there is often output to stderr by libnotmuch detailing the xapian error and this is simply printed out. But this requires fixing at the libnotmuch level... Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
parent
805d737029
commit
9562c7d1fb
1 changed files with 1 additions and 1 deletions
|
@ -580,7 +580,7 @@ class Query(object):
|
|||
threads_p = Query._search_threads(self._query)
|
||||
|
||||
if threads_p is None:
|
||||
NotmuchError(STATUS.NULL_POINTER)
|
||||
raise NotmuchError(STATUS.NULL_POINTER)
|
||||
|
||||
return Threads(threads_p,self)
|
||||
|
||||
|
|
Loading…
Reference in a new issue