summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leap/bonafide/_protocol.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/leap/bonafide/_protocol.py b/src/leap/bonafide/_protocol.py
index e58fbf4..e9c60de 100644
--- a/src/leap/bonafide/_protocol.py
+++ b/src/leap/bonafide/_protocol.py
@@ -133,12 +133,8 @@ class BonafideProtocol(object):
session = self._get_session(full_id)
if not session.is_authenticated:
return fail(RuntimeError("There is no session for such user"))
- try:
- d = session.logout()
- except Exception as exc:
- log.err(exc)
- return fail(exc)
+ d = session.logout()
d.addCallback(lambda _: self._sessions.pop(full_id))
d.addCallback(lambda _: '%s logged out' % full_id)
return d