From a302322e53878a6212532d33ac0a0f9e0c34b176 Mon Sep 17 00:00:00 2001 From: Victor Shyba Date: Wed, 21 Sep 2016 17:21:09 -0300 Subject: [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. --- client/src/leap/soledad/client/http_target/support.py | 3 +++ 1 file changed, 3 insertions(+) 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): -- cgit v1.2.3