summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2016-08-27 18:43:15 +0200
committerRuben Pollan <meskio@sindominio.net>2016-08-27 19:16:34 +0200
commitb97643c5b8cbee752659269f0be15ff460efe193 (patch)
treeca196124b388237f093c7ad7ec98e8f674ec34bb
parentcc640c9b05aa6f74c7610bfa141b6f2c631ff9b8 (diff)
[bug] let the failures propagate
In the case of wrong username/password the failure returned was 'Authentication hook did not return anything'. Right now the original failure is returned, and the producer of the failure can put a more meaningful message. - Resolves: #8399
-rw-r--r--bonafide/src/leap/bonafide/config.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/bonafide/src/leap/bonafide/config.py b/bonafide/src/leap/bonafide/config.py
index c3097cc..ae66a0e 100644
--- a/bonafide/src/leap/bonafide/config.py
+++ b/bonafide/src/leap/bonafide/config.py
@@ -227,13 +227,11 @@ class Provider(object):
def callWhenMainConfigReady(self, cb, *args, **kw):
d = self.first_bootstrap[self._domain]
d.addCallback(lambda _: cb(*args, **kw))
- d.addErrback(log.err)
return d
def callWhenReady(self, cb, *args, **kw):
d = self.ongoing_bootstrap[self._domain]
d.addCallback(lambda _: cb(*args, **kw))
- d.addErrback(log.err)
return d
def has_valid_certificate(self):