X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fpython-cffi%2Fnotmuch2%2F_errors.py;h=9301073ed7668836f74c68f1cc0f3503b772af46;hb=2e39ce6eb5d5e5ae2a2a4ed419190003f47e566e;hp=65064d4eda470cf8f90a25bf38f0c75bf53ac62f;hpb=dd9112e7d8e89e8566b90379f5f3b1461a2d2845;p=notmuch diff --git a/bindings/python-cffi/notmuch2/_errors.py b/bindings/python-cffi/notmuch2/_errors.py index 65064d4e..9301073e 100644 --- a/bindings/python-cffi/notmuch2/_errors.py +++ b/bindings/python-cffi/notmuch2/_errors.py @@ -52,6 +52,8 @@ class NotmuchError(Exception): IllegalArgumentError, capi.lib.NOTMUCH_STATUS_NO_CONFIG: NoConfigError, + capi.lib.NOTMUCH_STATUS_NO_DATABASE: + NoDatabaseError, capi.lib.NOTMUCH_STATUS_DATABASE_EXISTS: DatabaseExistsError, } @@ -99,6 +101,7 @@ class UpgradeRequiredError(NotmuchError): pass class PathError(NotmuchError): pass class IllegalArgumentError(NotmuchError): pass class NoConfigError(NotmuchError): pass +class NoDatabaseError(NotmuchError): pass class DatabaseExistsError(NotmuchError): pass class ObjectDestroyedError(NotmuchError):