aboutsummaryrefslogtreecommitdiff
path: root/bindings/python/notmuch/globals.py
diff options
context:
space:
mode:
authorSebastian Spaeth <Sebastian@SSpaeth.de>2011-10-05 16:44:35 +0200
committerSebastian Spaeth <Sebastian@SSpaeth.de>2011-10-05 16:44:35 +0200
commit05926adf73e7b1bad0faa4a0a5514d554353cdaa (patch)
treec5686e0a11e57b9f4d33988947a06f089f6c6f54 /bindings/python/notmuch/globals.py
parent70479753a6f0ea115db58f059a2a89cddd9187bb (diff)
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 <Sebastian@SSpaeth.de>
Diffstat (limited to 'bindings/python/notmuch/globals.py')
-rw-r--r--bindings/python/notmuch/globals.py4
1 files changed, 4 insertions, 0 deletions
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