Python bindings and Xapian exceptions

2014-12-18 Thread Matt
For now, as a workaround, I open the db, do my request, close it and repeat the process 5/10 sec later. I hope it does not add to much overhead ?! Anyway, it owuld be nice to have this fixed in one way or another. Thanks for your answer David. Best regards 2014-12-16 9:02 GMT+01:00 David Bremner

Re: Python bindings and Xapian exceptions

2014-12-18 Thread Matt
For now, as a workaround, I open the db, do my request, close it and repeat the process 5/10 sec later. I hope it does not add to much overhead ?! Anyway, it owuld be nice to have this fixed in one way or another. Thanks for your answer David. Best regards 2014-12-16 9:02 GMT+01:00 David Bremner

Python bindings and Xapian exceptions

2014-12-16 Thread David Bremner
Matt writes: > 2014-12-15 21:41 GMT+01:00 David Bremner : >> Matt writes: >> > But for exceptions in general, yes the notmuch library does need to be > fixed to allow the caller of functions to distinguish between things > like "no matches found" and "an exception occurred, so

Re: Python bindings and Xapian exceptions

2014-12-16 Thread David Bremner
Matt matta...@gmail.com writes: 2014-12-15 21:41 GMT+01:00 David Bremner da...@tethera.net: Matt matta...@gmail.com writes: But for exceptions in general, yes the notmuch library does need to be fixed to allow the caller of functions to distinguish between things like no matches found

Python bindings and Xapian exceptions

2014-12-15 Thread Matt
2014-12-15 21:41 GMT+01:00 David Bremner : > Matt writes: > >>> > But for exceptions in general, yes the notmuch library does need to be >>> > fixed to allow the caller of functions to distinguish between things >>> > like "no matches found" and "an exception occurred, so it's unknown if >>> >

Python bindings and Xapian exceptions

2014-12-15 Thread David Bremner
Matt writes: >> > But for exceptions in general, yes the notmuch library does need to be >> > fixed to allow the caller of functions to distinguish between things >> > like "no matches found" and "an exception occurred, so it's unknown if >> > any messages match the search". That's a general

Python bindings and Xapian exceptions

2014-12-15 Thread Matt
> > But for exceptions in general, yes the notmuch library does need to be > > fixed to allow the caller of functions to distinguish between things > > like "no matches found" and "an exception occurred, so it's unknown if > > any messages match the search". That's a general class of library > >

Re: Python bindings and Xapian exceptions

2014-12-15 Thread Matt
But for exceptions in general, yes the notmuch library does need to be fixed to allow the caller of functions to distinguish between things like no matches found and an exception occurred, so it's unknown if any messages match the search. That's a general class of library interface bugs

Re: Python bindings and Xapian exceptions

2014-12-15 Thread David Bremner
Matt matta...@gmail.com writes: But for exceptions in general, yes the notmuch library does need to be fixed to allow the caller of functions to distinguish between things like no matches found and an exception occurred, so it's unknown if any messages match the search. That's a general

Python bindings and Xapian exceptions

2010-11-05 Thread Sebastian Spaeth
On Thu, 04 Nov 2010 12:31:48 -0700, Carl Worth wrote: > On Tue, 15 Jun 2010 11:03:55 +0200, "Sebastian Spaeth" wrote: > > > A Xapian exception occurred finding message: The revision being read > > > has been discarded - you should call Xapian::Database::reopen() and > > > retry the

Re: Python bindings and Xapian exceptions

2010-11-05 Thread Sebastian Spaeth
On Thu, 04 Nov 2010 12:31:48 -0700, Carl Worth cwo...@cworth.org wrote: On Tue, 15 Jun 2010 11:03:55 +0200, Sebastian Spaeth wrote: A Xapian exception occurred finding message: The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the

Python bindings and Xapian exceptions

2010-11-04 Thread Carl Worth
On Tue, 15 Jun 2010 11:03:55 +0200, "Sebastian Spaeth" wrote: > > 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. > >

Re: Python bindings and Xapian exceptions

2010-11-04 Thread Carl Worth
On Tue, 15 Jun 2010 11:03:55 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: 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

Python bindings and Xapian exceptions

2010-06-15 Thread 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

Python bindings and Xapian exceptions

2010-06-15 Thread David Edmondson
On Tue, 15 Jun 2010 11:03:55 +0200, "Sebastian Spaeth" wrote: > > 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. > >

Re: Python bindings and Xapian exceptions

2010-06-15 Thread 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

Re: Python bindings and Xapian exceptions

2010-06-15 Thread David Edmondson
On Tue, 15 Jun 2010 11:03:55 +0200, Sebastian Spaeth sebast...@sspaeth.de wrote: 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

Python bindings and Xapian exceptions

2010-06-10 Thread David Edmondson
Is anything happening about: 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. dme. -- David Edmondson, http://dme.org

Python bindings and Xapian exceptions

2010-06-10 Thread David Edmondson
Is anything happening about: 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. dme. -- David Edmondson, http://dme.org