summaryrefslogtreecommitdiff
path: root/src/leap/bonafide/_protocol.py
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
commit004ae9a199b0ec93ea5f4ec8da5e35455f2650f7 (patch)
tree9ad9f9cb196300697335b4e3bc45fc1e58e0fec1 /src/leap/bonafide/_protocol.py
parentacfd238ef3d123ff8bacb9d099da6aeb596614d0 (diff)
remove unneeded try/except
Diffstat (limited to 'src/leap/bonafide/_protocol.py')
-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