summaryrefslogtreecommitdiff
path: root/bonafide/src
diff options
context:
space:
mode:
Diffstat (limited to 'bonafide/src')
-rw-r--r--bonafide/src/leap/bonafide/service.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bonafide/src/leap/bonafide/service.py b/bonafide/src/leap/bonafide/service.py
index 4d5ee781..ff3c30af 100644
--- a/bonafide/src/leap/bonafide/service.py
+++ b/bonafide/src/leap/bonafide/service.py
@@ -59,8 +59,9 @@ class BonafideService(HookableService):
def notify_bonafide_auth(result):
if not result:
- log.msg("Authentication hook did not return anything")
- return
+ msg = "Authentication hook did not return anything"
+ log.msg(msg)
+ raise RuntimeError(msg)
token, uuid = result
data = dict(username=username, token=token, uuid=uuid,