summaryrefslogtreecommitdiff
path: root/common/src
diff options
context:
space:
mode:
authorBruno Wagner <bwagner@riseup.net>2015-11-20 11:02:14 -0200
committerFolker Bernitt <fbernitt@thoughtworks.com>2015-11-23 09:07:21 +0100
commit3537351ad94dd17d0c0a57ec77489b4a540b3d23 (patch)
tree06d0912d34f681a16fa3baec1da36116f0a539c8 /common/src
parent086f9fad3ebb1bdcc0ec3fa6161f801068a0c641 (diff)
[bug] BackendNotReadyError breaks without status
The new BackendNotReadyError didn't have a status or a wire description, because of that, when you tried to use the leap.soledad.server package it would break trying to import this exception (because the annotation tries to use this variable). This was preventing soledad server from starting at all, after this change it works again
Diffstat (limited to 'common/src')
-rw-r--r--common/src/leap/soledad/common/errors.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/src/leap/soledad/common/errors.py b/common/src/leap/soledad/common/errors.py
index f783404c..0b6bb4e6 100644
--- a/common/src/leap/soledad/common/errors.py
+++ b/common/src/leap/soledad/common/errors.py
@@ -150,3 +150,5 @@ class BackendNotReadyError(SoledadError):
Generic exception raised when the backend is not ready to dispatch a client
request.
"""
+ wire_description = "backend not ready"
+ status = 500