X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=bindings%2Fpython%2Fnotmuch%2Fglobals.py;h=a42f2a40d68f4217d9f29691d44eb9b8ac8ef97b;hb=05926adf73e7b1bad0faa4a0a5514d554353cdaa;hp=190854a1b9bc654acd9c91c3d710adefde34e987;hpb=8c51525e8213e074a845ad53d7196453952623dd;p=notmuch diff --git a/bindings/python/notmuch/globals.py b/bindings/python/notmuch/globals.py index 190854a1..a42f2a40 100644 --- a/bindings/python/notmuch/globals.py +++ b/bindings/python/notmuch/globals.py @@ -23,7 +23,7 @@ from ctypes.util import find_library #----------------------------------------------------------------------------- #package-global instance of the notmuch library try: - nmlib = CDLL("libnotmuch.so.1") + nmlib = CDLL("libnotmuch.so.2") except: raise ImportError("Could not find shared 'notmuch' library.") @@ -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