Re: Python bindings and Xapian exceptions

Subject: Re: Python bindings and Xapian exceptions

Date: Tue, 15 Jun 2010 11:03:55 +0200

To: notmuch

Cc:

From: Sebastian Spaeth


>   A Xapian exception occurred finding message: The revision being read
>   has been discarded - you should call Xapian::Database::reopen() and
>   retry the operation.
> It makes the Python bindings almost useless to me.

Not sure, if the python bindings should simply drop and reopen a
database connection in that case? But I am not sure if libnotmuch.so
still simply exits on such an error case.

The proper fix, and a reason why I am not immediately hacking around in
the python bindings is that notmuch the library would actually return a
proper error value rather than print to stderr and quit.

Happy to receive suggestions on how to handle this best from the python
side of things.

Sebastian
part-000.sig (application/pgp-signature)

Thread: