Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id A43B24196F4 for ; Tue, 15 Jun 2010 02:04:11 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.091 X-Spam-Level: X-Spam-Status: No, score=-0.091 tagged_above=-999 required=5 tests=[BAYES_20=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, T_MIME_NO_TEXT=0.01] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id a6BOmNhdcvgX for ; Tue, 15 Jun 2010 02:04:01 -0700 (PDT) Received: from homiemail-a21.g.dreamhost.com (caiajhbdcahe.dreamhost.com [208.97.132.74]) by olra.theworths.org (Postfix) with ESMTP id 5C413431FC1 for ; Tue, 15 Jun 2010 02:04:01 -0700 (PDT) Received: from homiemail-a21.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTP id 94358300064 for ; Tue, 15 Jun 2010 02:03:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=ZrPvhPJuE6j/5eohAsQtrBsB6VN cIdZZW3hOppFnrVqYk5ExMxwrJ9qMZC2RvAoUzZ1mMMJYa3TFDIDC8k0TXWRSS/b gmHvzhq+U0QuII/iVamoJbWluBjGTNtJp5JWFRQBPMBGjAT+haOx1nJEDQsVbNBu SO1GNqmFOhmtPguU= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=BL7ICKxNYDhzUogRQZanLlGDQHA=; b=X kNsrz7jYaoRIpQp3CzhIP44eL9WWRgC+fUiDrTJnN6StAR4GTqGWu1eWhIPMIoPk /51ijk4mT/lqBfniu3LgHR2JpkyNCOUIKSnuyqvYf1uy/woJpVAHNmceEYu/jxON O+vgGLhQU79RDFCdOzhv0SULXda38yAUfwAiZokzV4= Received: from sspaeth.de (mtec-hg-docking-2-dhcp-040.ethz.ch [82.130.121.40]) (Authenticated sender: sebastian@sspaeth.de) by homiemail-a21.g.dreamhost.com (Postfix) with ESMTPA id 3FD32300014 for ; Tue, 15 Jun 2010 02:03:58 -0700 (PDT) Received: by sspaeth.de (sSMTP sendmail emulation); Tue, 15 Jun 2010 11:03:56 +0200 From: "Sebastian Spaeth" To: notmuch Subject: Re: Python bindings and Xapian exceptions In-Reply-To: <87k4q7s43v.fsf@ut.hh.sledj.net> References: <87k4q7s43v.fsf@ut.hh.sledj.net> User-Agent: Notmuch/0.3.1-49-g90d15b3 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Tue, 15 Jun 2010 11:03:55 +0200 Message-ID: <878w6gis5g.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jun 2010 09:04:12 -0000 --=-=-= > 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAkwXQfwACgkQVYX1jMgnoGIFfQCfQAQwgLOqQrfGyEEVsPP1HW24 I1gAnAwFq9QDIbrI/SCWi9kHYgh3vB7B =36BM -----END PGP SIGNATURE----- --=-=-=--