]> git.cworth.org Git - notmuch/blobdiff - bindings/python-cffi/notmuch2/_errors.py
lib: add NOTMUCH_STATUS_DATABASE_EXISTS
[notmuch] / bindings / python-cffi / notmuch2 / _errors.py
index c97d99cbde5fa9fac4e9c159b5c51dd3702ff6c8..65064d4eda470cf8f90a25bf38f0c75bf53ac62f 100644 (file)
@@ -52,6 +52,8 @@ class NotmuchError(Exception):
                 IllegalArgumentError,
             capi.lib.NOTMUCH_STATUS_NO_CONFIG:
                 NoConfigError,
+            capi.lib.NOTMUCH_STATUS_DATABASE_EXISTS:
+                DatabaseExistsError,
         }
         return types[status]
 
@@ -97,6 +99,7 @@ class UpgradeRequiredError(NotmuchError): pass
 class PathError(NotmuchError): pass
 class IllegalArgumentError(NotmuchError): pass
 class NoConfigError(NotmuchError): pass
+class DatabaseExistsError(NotmuchError): pass
 
 class ObjectDestroyedError(NotmuchError):
     """The object has already been destroyed and it's memory freed.