diff options
author | Kali Kaneko <kali@leap.se> | 2015-11-19 18:22:14 -0400 |
---|---|---|
committer | Kali Kaneko <kali@leap.se> | 2015-11-19 18:26:44 -0400 |
commit | bb228d13aa14cabe7448f9c7e5b55744de36843a (patch) | |
tree | 490b5b12a34cf40b937b83b07ea5502151ed4acd /common/src/leap/soledad/common/errors.py | |
parent | 46678a7aecb98dbdc20846477c7f5110f3c63861 (diff) |
[bug] fix indirect dependency on couchdb for client
by subclassing the MissingDesignDocError, we don't have to import the
soledad.common.couch submodule into the soledad.client.sync
- Resolves: #7626
Diffstat (limited to 'common/src/leap/soledad/common/errors.py')
-rw-r--r-- | common/src/leap/soledad/common/errors.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/errors.py b/common/src/leap/soledad/common/errors.py index 2f6fd1d8..7a8a8929 100644 --- a/common/src/leap/soledad/common/errors.py +++ b/common/src/leap/soledad/common/errors.py @@ -143,3 +143,11 @@ class InvalidURLError(Exception): """ Exception raised when Soledad encounters a malformed URL. """ + + +@register_exception +class BackendNotReadyError(SoledadError): + """ + Generic exception raised when the backend is not ready to dispatch a client + request. + """ |