mirror of
https://github.com/element-hq/synapse.git
synced 2026-05-11 17:34:45 +00:00
Use get to avoid KeyErrors
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user