summaryrefslogtreecommitdiff
path: root/bonafide/src
diff options
context:
space:
mode:
authorKali Kaneko (leap communications) <kali@leap.se>2016-03-04 01:00:36 -0400
committerKali Kaneko (leap communications) <kali@leap.se>2016-03-04 01:00:36 -0400
commit242aaa656339c020381083593122ebbfef7141c6 (patch)
tree0affd9bafec336f8c5ca75af1e5d188135c8dcb2 /bonafide/src
parent97126d0858d8cb5e6e419666160a6818cb64b74e (diff)
remove unneeded try/except
Diffstat (limited to 'bonafide/src')
-rw-r--r--bonafide/src/leap/bonafide/_protocol.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/bonafide/src/leap/bonafide/_protocol.py b/bonafide/src/leap/bonafide/_protocol.py
index e58fbf42..e9c60de3 100644
--- a/bonafide/src/leap/bonafide/_protocol.py
+++ b/bonafide/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