From: "Sebastian Spaeth" <Sebastian@SSpaeth.de>
To: notmuch <notmuch@notmuchmail.org>
Subject: Re: Python bindings and Xapian exceptions
Date: Tue, 15 Jun 2010 11:03:55 +0200 [thread overview]
Message-ID: <878w6gis5g.fsf@SSpaeth.de> (raw)
In-Reply-To: <87k4q7s43v.fsf@ut.hh.sledj.net>
[-- Attachment #1: Type: text/plain, Size: 702 bytes --]
> 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
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2010-06-15 9:04 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-10 8:07 Python bindings and Xapian exceptions David Edmondson
2010-06-15 9:03 ` Sebastian Spaeth [this message]
2010-06-15 9:17 ` David Edmondson
2010-11-04 19:31 ` Carl Worth
2010-11-05 7:25 ` Sebastian Spaeth
2014-12-15 11:19 ` Matt
2014-12-15 20:41 ` David Bremner
2014-12-15 20:46 ` Matt
2014-12-16 8:02 ` David Bremner
2014-12-18 21:10 ` Matt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878w6gis5g.fsf@SSpaeth.de \
--to=sebastian@sspaeth.de \
--cc=notmuch@notmuchmail.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).