summaryrefslogtreecommitdiff
path: root/client/src/leap/soledad
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2016-09-21 17:21:09 -0300
committerdrebs <drebs@leap.se>2016-12-12 09:11:59 -0200
commita302322e53878a6212532d33ac0a0f9e0c34b176 (patch)
treed89384f709aa59a9b4fd87afcec2e2636fc3c982 /client/src/leap/soledad
parent16f73007db6ec74435a25a95ba2150d5d14d8138 (diff)
[bug] handle 400
There was an if without an else on error handler that avoided handling errors that falled back current logic. Added a generic one to the tail so we dont miss it.
Diffstat (limited to 'client/src/leap/soledad')
-rw-r--r--client/src/leap/soledad/client/http_target/support.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/client/src/leap/soledad/client/http_target/support.py b/client/src/leap/soledad/client/http_target/support.py
index 40e5eb55..fe91c5b1 100644
--- a/client/src/leap/soledad/client/http_target/support.py
+++ b/client/src/leap/soledad/client/http_target/support.py
@@ -53,6 +53,9 @@ class ReadBodyProtocol(_ReadBodyProtocol):
if exc_cls is not None:
message = respdic.get("message")
self.deferred.errback(exc_cls(message))
+ else:
+ self.deferred.errback(
+ errors.HTTPError(self.status, respdic, self.headers))
# ---8<--- end of snippet from u1db.remote.http_client
def connectionLost(self, reason):