From 05926adf73e7b1bad0faa4a0a5514d554353cdaa Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 5 Oct 2011 16:44:35 +0200 Subject: python: Catch up with find_message(by_filename) API changes message is now an out parameter, and we get an additional status code as a result. Hurray \o/. Signed-off-by: Sebastian Spaeth --- bindings/python/notmuch/globals.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bindings/python/notmuch/globals.py') diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 51d2b65..a42f2a4 100644 --- a/bindings/python/notmuch/globals.py +++ b/bindings/python/notmuch/globals.py @@ -163,6 +163,10 @@ class UnbalancedFreezeThawError(NotmuchError): class UnbalancedAtomicError(NotmuchError): pass class NotInitializedError(NotmuchError): + """Derived from NotmuchError, this occurs if the underlying data + structure (e.g. database is not initialized (yet) or an iterator has + been exhausted. You can test for NotmuchError with .status = + STATUS.NOT_INITIALIZED""" pass -- cgit v1.2.3