summary refs log tree commit diff
path: root/synapse/handlers/auth.py
diff options
context:
space:
mode:
Diffstat (limited to 'synapse/handlers/auth.py')
-rw-r--r--synapse/handlers/auth.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/auth.py b/synapse/handlers/auth.py
index 6fff7e7d03..d5d2072436 100644
--- a/synapse/handlers/auth.py
+++ b/synapse/handlers/auth.py
@@ -286,7 +286,7 @@ class AuthHandler(BaseHandler):
             logger.info(
                 "%s reCAPTCHA from hostname %s",
                 "Successful" if resp_body['success'] else "Failed",
-                resp_body['hostname']
+                resp_body.get('hostname')
             )
             if resp_body['success']:
                 defer.returnValue(True)