summaryrefslogtreecommitdiff
path: root/client/src
diff options
context:
space:
mode:
authorVictor Shyba <victor.shyba@gmail.com>2016-09-21 17:21:09 -0300
committerVictor Shyba <victor1984@riseup.net>2016-11-18 15:55:52 -0300
commitd378d58f4d30e6745df024d944f6cb372b3493d4 (patch)
treeb707b06bb95701bd15159ae9be344306b827a644 /client/src
parent37f56e1d58a2c466a074018b51bf7db29ae09fe0 (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')
-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):